/* =========================
   GLOBAL
========================= */

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
    color: #16324f;
}

.custom-navbar {
    background: linear-gradient(90deg, #0d6efd, #198754);
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.3px;
}

.back-home-link {
    color: #0d6efd;
    font-weight: 600;
}

.back-home-link:hover {
    color: #198754;
}

/* =========================
   BUTTONS
========================= */

.btn-main {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.20);
}

.btn-main:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: #fff;
}

.btn-student {
    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.18);
}

.btn-student:hover {
    background: linear-gradient(135deg, #157347, #146c43);
    color: #fff;
}

/* =========================
   LANDING PAGE
========================= */

.landing-clean {
    background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
}

.hero-row {
    min-height: 56vh;
}

.hero-box {
    padding-right: 20px;
}

.small-tag {
    display: inline-block;
    background: #f3e6b8;
    color: #5d4b00;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.main-title {
    font-size: 2.7rem;
    line-height: 1.18;
    font-weight: 800;
    color: #14385b;
    margin-bottom: 18px;
}

.main-desc {
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5f6b76;
}

.logo-showcase {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e6ebf0;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.main-logo {
    max-height: 300px;
    object-fit: contain;
}

/* =========================
   FEATURE CARDS
========================= */

.feature-card {
    height: 100%;
    border-radius: 20px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #16324f;
}

.feature-card p {
    margin-bottom: 0;
    color: #5f6b76;
    line-height: 1.7;
    font-size: 0.96rem;
}

.feature-blue {
    border-left: 6px solid #0d6efd;
}

.feature-green {
    border-left: 6px solid #198754;
}

.feature-yellow {
    border-left: 6px solid #ffc107;
}

/* =========================
   SIMPLE AUTH LOGIN PAGE (UPDATED)
========================= */

.simple-auth-page {
    background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
}

.simple-auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 30px;
    border: 1px solid #edf0f3;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.auth-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

/* 🔥 LOGO BESAR KHAS LOGIN */
.auth-logo {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

.simple-auth-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #16324f;
    margin-bottom: 10px;
}

.simple-auth-subtitle {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0;
}

.simple-input {
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #fbfdff;
    padding-top: 12px;
    padding-bottom: 12px;
}

.simple-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    background: #ffffff;
}

.simple-login-btn {
    border-radius: 12px;
    font-weight: 700;
    padding-top: 11px;
    padding-bottom: 11px;
}

/* ❌ buang demo box terus (optional kalau tak guna)
.simple-demo-box {
    display: none;
}
*/

/* =========================
   RESPONSIVE LOGIN
========================= */

@media (max-width: 576px) {
    .simple-auth-card {
        padding: 22px 18px;
    }

    .simple-auth-title {
        font-size: 1.55rem;
    }

    /* 🔥 LOGO MOBILE */
    .auth-logo {
        max-height: 95px;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .hero-row {
        min-height: auto;
    }

    .hero-box {
        padding-right: 0;
    }

    .main-title {
        font-size: 2rem;
    }

    .main-logo {
        max-height: 220px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.65rem;
    }

    .main-desc {
        font-size: 0.98rem;
    }

    .logo-showcase {
        padding: 22px;
    }

    .simple-auth-card {
        padding: 22px 18px;
    }

    .simple-auth-title {
        font-size: 1.55rem;
    }

    .auth-logo {
        max-height: 45px;
    }
}

/* =========================
   APP SIDEBAR LAYOUT
========================= */

.dashboard-page {
    background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
    min-height: 100vh;
}

.dashboard-content {
    width: 100%;
}

.app-sidebar {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    padding: 22px 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.sidebar-brand {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef2f6;
}

.sidebar-brand h4 {
    font-weight: 800;
    color: #16324f;
}

.sidebar-brand small {
    color: #6b7280;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
    color: #374151;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #eef5ff;
    color: #0d6efd;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #ffffff;
}

.sidebar-link.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.sidebar-link.logout-link {
    background: #fff8e5;
    color: #8a6500;
}

.sidebar-link.logout-link:hover {
    background: #ffefbf;
    color: #6e5700;
}

/* =========================
   ADVISOR DASHBOARD
========================= */

.dashboard-hero {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e7edf3;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.dashboard-badge {
    display: inline-block;
    background: #fff3cd;
    color: #6e5700;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
}

.dashboard-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #16324f;
}

.dashboard-subtitle {
    color: #5f6b76;
    line-height: 1.7;
    max-width: 760px;
}

.dashboard-stat-card {
    border-radius: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #edf0f3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.3rem;
    font-weight: 800;
    color: #16324f;
    line-height: 1.1;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.6;
}

.stat-blue {
    border-left: 6px solid #0d6efd;
}

.stat-green {
    border-left: 6px solid #198754;
}

.stat-yellow {
    border-left: 6px solid #ffc107;
}

.dashboard-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #edf0f3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.dashboard-table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-table tbody td {
    vertical-align: middle;
}

.table-badge {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    background: #eef5ff;
    color: #0d6efd;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.empty-state-box {
    text-align: center;
    padding: 36px 20px;
    background: #f9fbfd;
    border: 1px dashed #d6dde5;
    border-radius: 18px;
}

@media (max-width: 991px) {
    .app-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .dashboard-title {
        font-size: 1.6rem;
    }

    .dashboard-hero,
    .dashboard-panel,
    .dashboard-stat-card {
        padding: 18px;
    }
}

/* =========================
   student DASHBOARD
========================= */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.progress-item span {
    font-size: 0.9rem;
}

/* status */

.progress-item.completed {
    background: #e9f7ef;
    border-left: 6px solid #198754;
    color: #198754;
}

.progress-item.progress-status {
    background: #fff8e1;
    border-left: 6px solid #ffc107;
    color: #856404;
}

.progress-item.pending {
    background: #f1f3f5;
    border-left: 6px solid #adb5bd;
    color: #495057;
}

/* hover */

.progress-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dropdown-menu {
    min-width: 220px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

/* Avatar bulat */
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffc107;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Nama user */
.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Role kecil */
.user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    line-height: 1;
}


.sidebar-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}
