/* =========================================================
   PPL & PKM UNISBA - MAS DARUSY SYAFIIYAH
   STYLE UTAMA
   UTF-8 SAFE - TANPA EMOJI
========================================================= */

:root {
    --green-950: #064e3b;
    --green-900: #065f46;
    --green-800: #047857;
    --green-700: #059669;
    --green-600: #10b981;
    --green-50: #ecfdf5;

    --gold: #d4af37;
    --gold-soft: #f5e8b0;

    --text: #12352e;
    --muted: #71847e;
    --border: #dce9e4;
    --bg: #f4f8f6;
    --white: #ffffff;

    --shadow: 0 10px 30px rgba(6, 78, 59, .07);
    --shadow-lg: 0 20px 45px rgba(6, 78, 59, .12);

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
}

.top-nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
    box-shadow: 0 5px 25px rgba(0,0,0,.12);
}

.nav-container {
    width: min(1180px, calc(100% - 30px));
    min-height: 72px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none !important;
    color: #fff !important;
    flex-shrink: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--green-950);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 15px;
    letter-spacing: .3px;
}

.brand-text small {
    margin-top: 3px;
    font-size: 10px;
    opacity: .78;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 10px;
    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255,255,255,.13);
    color: #fff !important;
}

.nav-link i {
    font-size: 13px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.18);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    color: #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 11px;
}

.user-info small {
    color: rgba(255,255,255,.7);
    font-size: 9px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 4px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(220,38,38,.18);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-logout:hover {
    background: rgba(220,38,38,.32);
}

/* PAGE */

.page {
    width: min(1180px, calc(100% - 30px));
    margin: auto;
    padding: 28px 0 35px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.eyebrow,
.hero-label {
    display: inline-block;
    color: var(--green-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.page-heading h1 {
    margin: 3px 0 2px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.7px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.date-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.date-box i {
    color: var(--green-700);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    margin-bottom: 20px;
    padding: 31px 28px;
    border-radius: 20px;
    background: linear-gradient(120deg, #065f46 0%, #047857 52%, #159b78 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-label {
    color: #f8dd74;
}

.hero h2 {
    margin: 7px 0 5px;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.hero p {
    max-width: 690px;
    margin: 0 0 15px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    background: rgba(255,255,255,.1);
    font-size: 11px;
    font-weight: 600;
}

.hero-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
}

.decoration-one {
    width: 270px;
    height: 270px;
    right: -80px;
    top: -125px;
}

.decoration-two {
    width: 180px;
    height: 180px;
    right: 80px;
    bottom: -135px;
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    min-height: 96px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-icon,
.quick-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-800);
    background: var(--green-50);
}

.stat-icon {
    width: 47px;
    height: 47px;
    border-radius: 13px;
    font-size: 18px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 2px;
}

.stat-card strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
}

/* PANELS */

.content-grid {
    display: grid;
    grid-template-columns: 1.45fr .9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.student-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    margin-bottom: 18px;
}

.single-main {
    grid-template-columns: minmax(0, 600px);
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 19px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.panel-header h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.2px;
}

.panel-header p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.panel-tag {
    color: var(--green-700);
    font-size: 10px;
    font-weight: 700;
}

/* QUICK MENU */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 65px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none !important;
    transition: .2s ease;
}

.quick-item:hover {
    transform: translateY(-2px);
    border-color: #b9dcd0;
    box-shadow: 0 7px 18px rgba(6,78,59,.08);
}

.quick-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    font-size: 14px;
}

.quick-item strong,
.quick-item span {
    display: block;
}

.quick-item strong {
    font-size: 12px;
    color: var(--text);
}

.quick-item span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.arrow {
    margin-left: auto;
    color: #a7b9b4;
    font-size: 10px;
}

/* LOCATION */

.location-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d7ebe3;
    border-radius: 13px;
    background: #f5faf8;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16,185,129,.1);
}

.location-box strong {
    font-size: 12px;
}

.location-box p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.radius-info {
    margin-top: 11px;
    color: var(--muted);
    font-size: 10px;
}

.radius-info i {
    margin-right: 4px;
    color: var(--green-700);
}

.radius-info strong {
    color: var(--text);
}

.small-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

/* PROFILE */

.profile-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.profile-list div {
    padding: 11px;
    border-radius: 11px;
    background: #f7faf9;
    border: 1px solid #e5efeb;
}

.profile-list span,
.profile-list strong {
    display: block;
}

.profile-list span {
    color: var(--muted);
    font-size: 9px;
}

.profile-list strong {
    margin-top: 2px;
    font-size: 12px;
}

.status-pill,
.agenda-type {
    display: inline-flex;
    align-items: center;
    border-radius: 30px;
    font-weight: 700;
}

.status-pill {
    padding: 5px 9px;
    color: var(--green-800);
    background: var(--green-50);
    font-size: 9px;
}

/* ATTENDANCE */

.attendance-status {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 15px;
    margin: 10px 0 18px;
    padding: 15px;
    border-radius: 13px;
    background: #f7faf9;
}

.attendance-time span {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.attendance-time strong {
    display: block;
    margin-top: 3px;
    font-size: 21px;
}

.attendance-divider {
    height: 35px;
    background: var(--border);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--green-800);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
}

.primary-button:hover {
    background: var(--green-950);
    transform: translateY(-1px);
}

/* BIG NUMBER */

.big-number {
    margin: 12px 0 20px;
    color: var(--green-800);
    font-size: 45px;
    font-weight: 800;
    line-height: 1;
}

.big-number span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

/* AGENDA */

.agenda-panel {
    margin-bottom: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-700) !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
}

.agenda-list {
    display: flex;
    flex-direction: column;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 0;
    border-top: 1px solid #edf2f0;
}

.agenda-item:first-child {
    border-top: 0;
}

.agenda-date {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    color: var(--green-800);
}

.agenda-date strong {
    font-size: 17px;
    line-height: 1;
}

.agenda-date span {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 700;
}

.agenda-info {
    min-width: 0;
    flex: 1;
}

.agenda-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.agenda-type {
    padding: 3px 7px;
    background: #edf8f4;
    color: var(--green-800);
    font-size: 8px;
}

.agenda-time {
    color: var(--muted);
    font-size: 8px;
}

.agenda-info > strong {
    display: block;
    font-size: 12px;
}

.agenda-location {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.agenda-location i {
    color: var(--green-700);
}

/* EMPTY / ALERT */

.empty-state {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    color: var(--text);
    font-size: 12px;
}

.empty-state p {
    margin: 3px 0 0;
    font-size: 10px;
}

.empty-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f6f4;
    color: var(--green-700);
    font-size: 17px;
}

.alert {
    margin-bottom: 15px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 11px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
}

.alert-danger,
.alert-error {
    background: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
}

/* FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 2px 5px;
    color: #8a9b96;
    font-size: 9px;
}

.footer div:first-child {
    display: flex;
    flex-direction: column;
}

.footer strong {
    color: #62756f;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .nav-menu {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .nav-user {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .page {
        width: min(100% - 20px, 650px);
        padding-top: 20px;
    }

    .nav-container {
        width: calc(100% - 20px);
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .nav-menu {
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 0;
        scrollbar-width: thin;
    }

    .nav-link {
        padding: 8px 9px;
        font-size: 10px;
    }

    .btn-logout {
        font-size: 10px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .date-box {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 25px 20px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .stats-grid,
    .content-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .profile-list {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .page {
        width: calc(100% - 16px);
    }

    .brand-logo {
        width: 39px;
        height: 39px;
        border-radius: 11px;
        font-size: 14px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 9px;
    }

    .nav-menu {
        gap: 2px;
    }

    .nav-link span {
        display: none;
    }

    .nav-link {
        min-width: 38px;
        justify-content: center;
        font-size: 13px;
    }

    .btn-logout span {
        display: none;
    }

    .btn-logout {
        min-width: 36px;
        justify-content: center;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .hero {
        border-radius: 16px;
    }

    .hero h2 {
        font-size: 19px;
    }

    .stats-grid {
        gap: 9px;
    }

    .stat-card {
        min-height: 82px;
        padding: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .stat-card strong {
        font-size: 21px;
    }

    .panel {
        padding: 15px;
        border-radius: 15px;
    }
}
