/* Mini calendar dropdown — used by mini-calendar.js */

.mc-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.mc-cal {
    background: #1e293b;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    width: 230px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mc-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mc-title {
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 600;
}

.mc-nav {
    color: #94a3b8;
    font-size: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    user-select: none;
}

.mc-nav:hover {
    background: #334155;
    color: #e5e5e5;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.mc-day-hdr {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 0;
}

.mc-empty {
    padding: 5px 0;
}

.mc-day {
    color: #cbd5e1;
    font-size: 12px;
    padding: 5px 0;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.mc-day:hover:not(.mc-disabled):not(.mc-selected) {
    background: #334155;
}

.mc-selected {
    background: #059669;
    color: #fff;
    font-weight: 600;
}

.mc-disabled {
    color: #64748b;
    cursor: default;
    opacity: 0.5;
}

.mc-footer {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #334155;
}

.mc-cancel {
    display: block;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 4px;
    user-select: none;
    background: #059669;
    border: 1px solid #059669;
}

.mc-cancel:hover {
    background: #047857;
}

.mc-day.mc-other.mc-disabled {
    color: #64748b;
    opacity: 0.5;
}

/* Title clickable — year selector */
.mc-title-click {
    cursor: pointer;
    border-radius: 3px;
    padding: 2px 6px;
}
.mc-title-click:hover {
    background: #334155;
}

/* Year grid */
.mc-year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    text-align: center;
}
.mc-year {
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}
.mc-year:hover {
    background: #334155;
}
.mc-year-current {
    background: #059669;
    color: #fff;
    font-weight: 600;
}
.mc-year-current:hover {
    background: #047857;
}

/* Light theme */
body.light .mc-cal {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
body.light .mc-title { color: #1e293b; }
body.light .mc-nav { color: #475569; }
body.light .mc-nav:hover { background: #e2e8f0; color: #1e293b; }
body.light .mc-day-hdr { color: #94a3b8; }
body.light .mc-day { color: #1e293b; }
body.light .mc-day.mc-selected { color: #fff; }
body.light .mc-day:hover:not(.mc-disabled):not(.mc-selected) { background: #e2e8f0; }
body.light .mc-disabled { color: #94a3b8; }
body.light .mc-day.mc-other.mc-disabled { color: #cbd5e1; }
body.light .mc-footer { border-top-color: #e2e8f0; }
body.light .mc-title-click:hover { background: #e2e8f0; }
body.light .mc-year { color: #1e293b; }
body.light .mc-year:hover { background: #e2e8f0; }
body.light .mc-year-current { color: #fff; }
body.light .mc-year-current:hover { background: #047857; }
