.custom-calendar-container {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.current-month-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.nav-btn,
.today-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s;
}

.nav-btn:hover,
.today-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
    transition: background 0.2s;
}

.calendar-day.empty {
    background: #f8fafc;
}

.calendar-day.today {
    background: #f0f9ff;
}

.calendar-day.today .day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #20C994;
    /* brand-primary */
    color: white;
    border-radius: 50%;
}

.day-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.day-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-item {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid transparent;
}

/* Color Coding for Audit Levels */
.task-item-major {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.task-item-moderate {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.task-item-minor {
    background: #dcfce7;
    color: #166534;
    border-color: #10b981;
}

.task-item-default {
    background: #f1f5f9;
    color: #475569;
    border-color: #94a3b8;
}

/* New Status-based coloring */
.task-item-red {
    background: #fee2e2;
    color: #A50000;
    border-color: #A50000;
}

.task-item-yellow {
    background: #fef9c3;
    color: #854d0e;
    border-color: #FCE762;
}

.task-item-orange {
    background: #ffedd5;
    color: #9a3412;
    border-color: #FF6700;
}

.task-item-green {
    background: #dcfce7;
    color: #065f46;
    border-color: #20C994;
}

/* View controls */
.view-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #475569;
    margin-left: 0.5rem;
}

.view-btn.active {
    background: #20C994;
    /* brand-primary */
    color: white;
}

.day-modal-card {
    border-color: #7FD8BE;
    /* brand-accent */
    border-radius: 0.5rem;
    padding: 1rem;
    background: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.day-modal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.125rem;
}

.card-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-value:last-child {
    margin-bottom: 0;
}