/* Base Glassmorphism */
body {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(200, 100%, 95%, 0.8) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(200, 80%, 90%, 0.5) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(30, 100%, 90%, 0.3) 0, transparent 50%);
    background-attachment: fixed;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

select option {
    background-color: #ffffff;
    color: #333333;
}

/* View Tabs */
.view-tab {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #334155;
}

.view-tab:hover {
    background: rgba(255, 255, 255, 1);
    color: #334155;
}

.view-tab.active {
    background: linear-gradient(135deg, rgba(19, 175, 240, 0.1), rgba(19, 175, 240, 0.05));
    border-color: rgba(19, 175, 240, 0.3);
    color: #13AFF0;
    box-shadow: 0 0 15px rgba(19, 175, 240, 0.1);
}

/* Class Type Buttons */
.class-type-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.class-type-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.class-type-btn.active {
    background: linear-gradient(135deg, rgba(19, 175, 240, 0.1), rgba(19, 175, 240, 0.05));
    border-color: rgba(19, 175, 240, 0.3);
    color: #13AFF0;
}

/* Calendar Grid */
.cal-grid {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    gap: 1px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cal-header {
    background: rgba(248, 250, 252, 1);
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #334155;
    border-bottom: 2px solid rgba(19, 175, 240, 0.3);
}

.cal-time {
    background: rgba(248, 250, 252, 1);
    padding: 8px 6px;
    text-align: center;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.cal-cell {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.15s;
}

.cal-cell:hover {
    background: rgba(241, 245, 249, 1);
}

.cal-block {
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: default;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s;
}

.cal-block:hover {
    transform: scale(1.03);
    z-index: 1;
}

.cal-block .class-name {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-block .class-stats {
    font-size: 12px;
    opacity: 0.85;
}

/* Capacity Color Classes */
.cap-high {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    color: #065f46;
}

.cap-medium {
    background: rgba(234, 179, 8, 0.1);
    border-left: 3px solid #eab308;
    color: #854d0e;
}

.cap-low {
    background: rgba(249, 115, 22, 0.1);
    border-left: 3px solid #f97316;
    color: #9a3412;
}

.cap-empty {
    background: rgba(148, 163, 184, 0.1);
    border-left: 3px solid #94a3b8;
    color: #1e293b;
}

/* Capacity Summary Cards */
.cap-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.cap-card .cap-bar-bg {
    background: rgba(241, 245, 249, 1);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.cap-card .cap-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}