.dp {
    display: inline-block;
    position: relative;
  }

  /* Input */
  .dp-input {
    appearance: none;
    border: 2px solid #e6e7eb;
    padding: 4px 12px;
    border-radius: 8px;
    width: 80px;
    background: white;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02) inset;
    cursor: pointer;
  }
  .dp-input:focus { outline: 2px solid rgba(37,99,235,0.18); }

  /* Popover */
  .dp-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    width: 280px;
    z-index: 50;
    user-select: none;
    background:linear-gradient(180deg, rgba(20,0,20,0.95), rgba(0,0,70,0.8));
    background-image: url("../background_images/background2.jpg");
    background-size: 175%;
  }

  .dp-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:8px;
  }

  .dp-month {
    font-weight:600;
    color:var(--accent);
  }
  .dp-controls {
    display:flex;
    gap:6px;
  }
  .dp-btn {
    border: none;
    padding: 6px;
    border-radius: 7px;
    background: #DDDDFF;
    cursor: pointer;
    font-size: 14px;
  }
  .dp-btn:focus { outline: 2px solid rgba(37,99,235,0.18); }

  .dp-grid {
    display:grid;
    grid-template-columns: repeat(7, 1fr);
    gap:6px;
    text-align:center;
  }

  .weekday {
    color: var(--muted);
    font-size: 12px;
    padding: 6px 0;
  }

  .day {
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
  }

  .day:hover { background: rgba(0,0,0,0.04); }
  .day.out { color: #9aa0a6; cursor: default; }
  .day.today { box-shadow: inset 0 0 0 1px rgba(37,99,235,0.12); border-radius: 8px; }
  .day.selected {
    background: var(--primary);
    color: white;
    font-weight:600;
  }

  /* Small footer */
  .dp-footer {
    margin-top:8px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    font-size:13px;
    color:var(--muted);
  }
  .dp-link {
    background: transparent;
    border:none;
    color:var(--primary);
    cursor:pointer;
    text-decoration:underline;
    padding:6px;
    border-radius:6px;
  }
  .sr-only { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }