/* Custom Nepali Date Picker Styles */

/* The bundled sprite (images/ndp_buttons.png) is not shipped, so draw the
   prev/next month arrows with CSS instead of relying on the missing image. */
#ndp-nepali-box .ndp-prev,
#ndp-nepali-box .ndp-next {
    background: none !important;
    cursor: pointer;
    text-indent: 0;
    color: #fff;
}
#ndp-nepali-box .ndp-prev::before,
#ndp-nepali-box .ndp-next::before {
    display: block;
    text-align: center;
    line-height: 1.3em;
    font-size: 14px;
    font-weight: 700;
}
#ndp-nepali-box .ndp-prev::before { content: "\2039"; } /* ‹ */
#ndp-nepali-box .ndp-next::before { content: "\203A"; } /* › */
#ndp-nepali-box .ndp-prev:hover,
#ndp-nepali-box .ndp-next:hover { opacity: .8; }

.ndp-custom-container {
    position: absolute;
    z-index: 1060;
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 12px;
    width: 300px;
    padding: 15px;
    font-family: 'Inter', 'Outfit', sans-serif;
    user-select: none;
    animation: ndpFadeIn 0.2s ease-out;
}

@keyframes ndpFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ndp-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 5px;
}

.ndp-custom-header select {
    flex: 1;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.ndp-custom-header select:focus {
    border-color: #6658dd;
}

.ndp-custom-nav {
    display: flex;
    gap: 5px;
}

.ndp-custom-nav button {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s;
}

.ndp-custom-nav button:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.ndp-custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.ndp-custom-table th {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ndp-custom-table td {
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
}

.ndp-custom-table td:hover {
    background: #f1f5f9;
    color: #6658dd;
}

.ndp-custom-table td.ndp-today {
    color: #6658dd;
    background: #f5f3ff;
    font-weight: 700;
}

.ndp-custom-table td.ndp-selected {
    background: #6658dd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(102, 88, 221, 0.4);
}

.ndp-custom-table td.ndp-other-month {
    color: #cbd5e1;
    pointer-events: none;
}

.ndp-input-group {
    position: relative;
}

.ndp-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ndp-toggle-btn:hover {
    color: #6658dd;
}

.ndp-custom-table td.ndp-holiday {
    color: #ef4444;
}

.ndp-input-group input {
    padding-right: 35px !important;
}

/* Dark Mode Support */
[data-bs-theme='dark'] .ndp-custom-container,
body.dark .ndp-custom-container,
.dark-mode .ndp-custom-container {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

[data-bs-theme='dark'] .ndp-custom-header select,
body.dark .ndp-custom-header select,
.dark-mode .ndp-custom-header select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme='dark'] .ndp-custom-nav button,
body.dark .ndp-custom-nav button,
.dark-mode .ndp-custom-nav button {
    background: #334155;
    color: #f1f5f9;
}

[data-bs-theme='dark'] .ndp-custom-nav button:hover,
body.dark .ndp-custom-nav button:hover,
.dark-mode .ndp-custom-nav button:hover {
    background: #475569;
}

[data-bs-theme='dark'] .ndp-custom-table td,
body.dark .ndp-custom-table td,
.dark-mode .ndp-custom-table td {
    color: #cbd5e1;
}

[data-bs-theme='dark'] .ndp-custom-table td:hover,
body.dark .ndp-custom-table td:hover,
.dark-mode .ndp-custom-table td:hover {
    background: #334155;
    color: #6658dd;
}

[data-bs-theme='dark'] .ndp-custom-table td.ndp-today,
body.dark .ndp-custom-table td.ndp-today,
.dark-mode .ndp-custom-table td.ndp-today {
    background: #1e1b4b;
    color: #818cf8;
}

[data-bs-theme='dark'] .ndp-custom-table td.ndp-other-month,
body.dark .ndp-custom-table td.ndp-other-month,
.dark-mode .ndp-custom-table td.ndp-other-month {
    color: #475569;
}
