.toolbar-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.calendar-wrapper {
    background: #f7f8fc;
    padding: 1.5rem;
    border-radius: 18px;
    color: #0f172a;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.month-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.month-name {
    text-transform: capitalize;
}

.month-button {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    text-transform: capitalize;
}

.month-button:hover {
    background: #e2e8f0;
}

.year-button {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.year-button:hover {
    background: #e2e8f0;
}

.year-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(60px, 1fr));
    gap: 0.35rem;
    z-index: 2;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.month-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 0.35rem;
    z-index: 2;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.month-option {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.month-option:hover {
    background: #e2e8f0;
}

.year-option {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-option:hover {
    background: #e2e8f0;
}

.calendar-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #475569;
    padding-bottom: 0.25rem;
}

.day-cell {
    background: #ffffff;
    border-radius: 14px;
    min-height: 130px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.day-cell:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.day-cell.other-month {
    opacity: 0.65;
}

.day-cell.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb inset;
}

.day-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.week-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.week-day-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.week-day-card.expanded {
    border-color: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.week-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.week-day-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.day-expand-toggle {
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    cursor: pointer;
}

.week-time-grid {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem 0.25rem 0.5rem 3.25rem;
    min-height: 960px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.week-time-grid.stacked-grid {
    cursor: pointer;
}

.week-time-grid.expanded-grid {
    min-height: 1080px;
}

.hour-row {
    position: relative;
    height: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.hour-row:last-child {
    border-bottom: none;
}

.hour-label {
    position: absolute;
    left: -3rem;
    top: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.event-block {
    position: absolute;
    left: 0;
    right: auto;
    border-radius: 10px;
    padding: 0.35rem 0.45rem;
    color: #0f172a;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    width: 96%;
    min-width: 46%;
    max-width: 100%;
}

.event-block.clickable {
    cursor: pointer;
}

.shift-block {
    color: #0b1930;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.day-number {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
}

.pill-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.1;
    width: fit-content;
    color: #0b1930;
    background: #e2e8f0;
}

.pill-wide {
    width: 100%;
}

.all-day-pill {
    border-radius: 0;
}

.pill-shift {
    background: linear-gradient(90deg, #e0e7ff, #dbeafe);
}

.pill-sick {
    background: linear-gradient(90deg, #fecdd3, #fee2e2);
    color: #7f1d1d;
}

.pill-own {
    border: 1px solid #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.pill-recipe {
    background: linear-gradient(90deg, #ffd580, #ffe9b0);
}

.pill-trade {
    background: linear-gradient(90deg, #c3d4ff, #e0e7ff);
}

.pill-event {
    color: #0b1930;
}

.pill-vacation-approved {
    background: linear-gradient(90deg, #a8f0c2, #d1f8e0);
}

.pill-vacation-pending {
    background: linear-gradient(90deg, #c5dcff, #e2ecff);
}

.pill-vacation-denied {
    background: linear-gradient(90deg, #f9c0c0, #ffd7d7);
}

.calendar-detail-panel {
    margin-top: 1.25rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.detail-block {
    background: #f8fafc;
    padding: 0.9rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
}

.entry-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.6rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.entry-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.entry-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.35rem;
}

.muted {
    opacity: 0.6;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.4rem;
    align-items: center;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekday {
        display: none;
    }
}
.pill-wide {
    width: 100%;
}
