/* ============================================================
   Avicenna Hub — Main Stylesheet
   ============================================================ */

* { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }

body {
    background: linear-gradient(135deg, #f7fbff 0%, #f0f4f1 40%, #eef7f0 100%);
    color: #0f172a;
}

/* ========== SIDEBAR ========== */
.sidebar-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748B;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.sidebar-link:hover {
    background: #E8F0EC;
    color: #2D4A3E;
    transform: translateX(4px);
}
.sidebar-link.active {
    background: linear-gradient(135deg, #E0F0E3, #C8E0D0);
    color: #1A3A2E;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.15);
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #87CEEB, #5EABD9);
    border-radius: 4px;
}
.sidebar-link i { width: 20px; height: 20px; flex-shrink: 0; }

/* ========== CARDS ========== */
.day-card, .gallery-card {
    background: #f8fbff;
    border-radius: 1.35rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.day-card:hover, .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -16px rgba(59, 130, 246, 0.25);
    border-color: #87CEEB;
}
.day-card.today {
    background: linear-gradient(135deg, #ecf9ff 0%, #e3f5ee 100%);
    border-color: #87CEEB;
    box-shadow: 0 14px 30px -20px rgba(59, 130, 246, 0.35);
}

/* ========== INCOMING CARD ========== */
.incoming-card {
    background: linear-gradient(135deg, #F8FAFC, #F0F4F1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.incoming-card:hover {
    border-color: #87CEEB;
    box-shadow: 0 8px 24px -8px rgba(135, 206, 235, 0.15);
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #87CEEB, #5EABD9);
    border-radius: 10px;
    transition: width 1s ease;
}

/* ========== PAGE TRANSITIONS ========== */
.page-content {
    display: none;
    animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-content.active { display: block; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ========== MODALS ========== */
.modal-content {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.student-modal-media {
    min-height: 220px;
    background-color: #f3f7ff;
    background-image: linear-gradient(135deg, rgba(79, 142, 247, 0.16), rgba(135, 206, 235, 0.12));
}
.student-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background-color: #eef4fb;
}

/* ========== UTILITIES ========== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== BADGES ========== */
.badge-today {
    font-size: 9px;
    background: linear-gradient(135deg, #87CEEB, #5EABD9);
    color: white;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.3);
}

/* ========== MAPEL LIST ITEMS ========== */
.mapel-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    font-size: 0.84rem;
    transition: all 0.2s ease;
    background: rgba(248, 250, 252, 0.9);
}
.mapel-item:hover { background: #eef7ff; }
.mapel-item .time {
    font-weight: 700;
    color: #0f172a;
    width: 56px;
    flex-shrink: 0;
    font-size: 0.74rem;
}
.mapel-item .name {
    flex: 1;
    color: #334155;
}
.mapel-item.break {
    background: #e8f6f0;
    color: #1d4ed8;
    font-style: italic;
    font-size: 0.8rem;
    border-radius: 999px;
}
.mapel-item.break .name { color: #2563eb; }

/* ========== FILTER BUTTONS ========== */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active {
    background: linear-gradient(135deg, #4F8EF7, #3A7BD5) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(79, 142, 247, 0.3);
}

/* ========== STUDENT CARDS ========== */
.student-card {
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(224, 230, 240, 0.9);
    border-radius: 1.75rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 40px -24px rgba(15, 23, 42, 0.18);
    position: relative;
}
.student-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.18), 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(79, 142, 247, 0.25);
}

/* Cover image area */
.student-card .cover-area {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(135, 206, 235, 0.08));
    background-color: #eef4fb;
}
.student-card .cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.01);
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), filter 0.4s ease;
    filter: saturate(1.05) contrast(0.98);
    background-color: #f5f9ff;
}
.student-card:hover .cover-image {
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1);
}
.student-card .cover-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0) 100%);
}
.student-card .cover-footer {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 1;
}
.student-card .avatar {
    width: 3rem;
    height: 3rem;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    background-color: #f8fbff;
    border: 2px solid rgba(255, 255, 255, 0.88);
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}
.student-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background-color: #eef4fb;
}
.student-card .cover-footer .label { min-width: 0; }
.student-card .cover-footer .label .name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.student-card .cover-footer .label .role {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.1rem;
}

/* Card body */
.student-card .card-body { padding: 1rem 1rem 1.25rem 1rem; }
.student-card .quote {
    color: #475569;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 2.4rem;
}
.student-card .profile-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1rem;
    border-radius: 1.5rem;
    border: 1px solid #E0E7FF;
    background: #F8FAFC;
    color: #0F172A;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-align: center;
}
.student-card .profile-btn:hover {
    background: #ffffff;
    border-color: #5EABD9;
    color: #0F172A;
}
.student-card .meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.student-card .meta-row .initial {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #87CEEB, #A8D5B1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}
.student-card .meta-row .meta-text {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
}
.student-card .meta-row .meta-sub {
    font-size: 0.78rem;
    color: #64748b;
}
.student-card .cover-container { position: relative; overflow: hidden; }
.student-card .card-body .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* ========== RECOGNITION CARD ========== */
.recognition-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E0F0E3;
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: #F8FAFC;
}
.recognition-card:hover {
    transform: translateY(-4px);
    border-color: #87CEEB;
    box-shadow: 0 12px 24px -8px rgba(135, 206, 235, 0.15);
    background: white;
}

/* ========== HERO GRADIENT & GLASS ========== */
.hero-gradient {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.08), rgba(224, 240, 227, 0.2));
    border: 1px solid rgba(135, 206, 235, 0.1);
}
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
