/* Dashboard compact STIEAMA — dari referensi stieama-dashboard-compact__1.html (v4, 27 Nov 2026)
   + tambahan: dropdown Link Penting, menu mobile, tabel DataTables, form nilai. */
:root{--blue:#0b4dcc;--ink:#101d3c;--muted:#536687;--line:#e1e8f7;--bg:#f5f8ff}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:radial-gradient(ellipse at 100% 10%,#dce7ff 0,transparent 34%),linear-gradient(135deg,#fff,#f2f6ff);min-height:100vh;display:flex;flex-direction:column}
main{flex:1;width:100%;max-width:1440px;margin:auto;padding:30px clamp(18px,4vw,58px) 44px}

/* ===== Topbar ===== */
.topbar{height:72px;padding:0 clamp(18px,4vw,58px);display:flex;align-items:center;gap:32px;background:#ffffffd9;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:16px;font-weight:800;line-height:1.2}
.brand b{display:block;color:var(--blue)}
.brand-logo{width:40px;height:40px;flex:none;object-fit:contain}
nav{display:flex;align-items:center;gap:26px;height:100%;margin-left:12px}
nav a,.nav-link{height:100%;display:flex;align-items:center;color:#33466a;text-decoration:none;font-size:14px;font-weight:600;padding:0 12px;position:relative;background:none;border:0;cursor:pointer;font-family:inherit;white-space:nowrap}
nav a.active{color:var(--blue)}
nav a.active:after{content:"";height:3px;position:absolute;bottom:0;left:0;right:0;background:var(--blue);border-radius:3px 3px 0 0}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.profile{width:38px;height:38px;border-radius:13px;background:#edf3ff;display:grid;place-items:center;color:var(--blue);text-decoration:none;font-size:18px}
.nav-toggle{display:none;width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:16px;cursor:pointer;font-family:inherit}

/* Dropdown Link Penting */
.has-drop{position:relative;height:100%;display:flex;align-items:stretch}
.drop-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px #1b4b9926;padding:6px;z-index:60;display:none}
.drop-menu.open{display:block}
.drop-menu a{display:flex;align-items:center;padding:10px 12px;border-radius:9px;color:#33466a;font-size:13px;font-weight:600;height:auto}
.drop-menu a:hover{background:#edf3ff;color:var(--blue)}

/* Menu mobile */
.mobile-menu{display:none;border-top:1px solid var(--line);background:#fff;padding:8px clamp(18px,4vw,58px) 14px}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;padding:11px 4px;color:#33466a;text-decoration:none;font-size:14px;font-weight:600}
.mobile-menu a.active{color:var(--blue)}
.mobile-menu .mm-label{padding:12px 4px 4px;margin:0;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8aa0c2}
.mobile-menu .mm-sub{padding-left:16px;font-weight:500}

/* ===== Hero ===== */
.hero{display:flex;align-items:center;gap:18px;margin-bottom:24px}
.hero-icon{width:60px;height:60px;flex:none;display:grid;place-items:center;border-radius:17px;background:#e1eaff;color:var(--blue)}
.hero-icon svg{width:34px;height:34px}
h1{font-size:clamp(23px,2.1vw,32px);letter-spacing:-.035em;line-height:1.2;margin:0 0 6px;font-weight:800}
.hero p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}

/* ===== Panel + kartu kelas ===== */
.classes-panel{padding:20px;background:#ffffffc9;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 24px #214b9410}
.classes-panel + .classes-panel{margin-top:16px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.panel-head h2{font-size:18px;margin:0;display:flex;align-items:center;gap:10px}
.panel-head h2 svg{width:22px;color:var(--blue)}
.see-all{font-size:13px;font-weight:700;color:var(--blue);text-decoration:none;padding:9px 13px;border-radius:10px;background:#edf3ff;white-space:nowrap}
.class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.class-card{min-width:0;padding:15px;border:1px solid #e2e9f9;border-radius:15px;background:#fff;box-shadow:0 3px 10px #1b4b9910;display:flex;flex-direction:column;gap:14px;transition:transform .15s,box-shadow .15s}
.class-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px #1b4b9918}
.card-top{display:flex;align-items:center;gap:12px;min-width:0}
.class-symbol{width:48px;height:48px;flex:none;border-radius:50%;display:grid;place-items:center;background:#eaf0ff;color:var(--blue)}
.class-symbol svg{width:27px;height:27px}
.class-title{min-width:0}
.class-title h3{font-size:15px;margin:0 0 5px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.class-title p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-bottom{display:flex;align-items:center;gap:10px;color:#40547a;font-size:12px;flex-wrap:wrap}
.meta{display:flex;align-items:center;gap:6px;white-space:nowrap}
.meta svg{width:15px;height:15px;color:#4a6090}
.meta-divider{height:16px;width:1px;background:#d8e1f3}
.card-action{margin-left:auto;width:30px;height:30px;flex:none;border:0;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;text-decoration:none;font-size:16px}
.card-action:hover{background:#0a44b8}

/* ===== Footer ===== */
footer{border-top:1px solid var(--line);padding:18px clamp(18px,4vw,58px);display:flex;align-items:center;gap:18px;color:#617291;font-size:13px;background:#ffffffd9}
.footer-brand{font-weight:800;color:var(--ink)}
.foot-divider{height:22px;width:1px;background:#b9c7e2}

/* ===== Tabel DataTables ===== */
.table-scroll{overflow-x:auto}
table.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.875rem;color:var(--ink)}
table.data-table thead th{background:#edf3ff;color:var(--ink);font-weight:700;font-size:.78rem;text-align:left;padding:.55rem .75rem;white-space:nowrap;border-bottom:1px solid var(--line)}
table.data-table tbody td{padding:.55rem .75rem;border-bottom:1px solid #eef2fb;vertical-align:top}
table.data-table tbody tr:last-child td{border-bottom:0}
table.data-table tbody tr:hover{background:#f8faff}
table.data-table td a{color:var(--blue);text-decoration:none}
table.data-table td a:hover{text-decoration:underline}
table.data-table-compact{font-size:.8rem}
table.data-table-compact th,table.data-table-compact td{padding:.4rem .5rem}
table.data-table-compact td a{word-break:break-all}
.dataTables_wrapper{font-size:13px;color:var(--muted)}
.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{font-size:13px;color:var(--muted)}
.dataTables_wrapper .dataTables_length select,.dataTables_wrapper .dataTables_filter input{border:1px solid var(--line);border-radius:8px;padding:6px 8px;font-size:13px;font-family:inherit;color:var(--ink);background:#fff}
.dataTables_wrapper .dataTables_length select:focus,.dataTables_wrapper .dataTables_filter input:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px #0b4dcc22}
.dataTables_wrapper .dataTables_paginate .paginate_button{border-radius:8px!important;border:1px solid transparent!important;color:var(--muted)!important}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{background:#edf3ff!important;color:var(--blue)!important;border-color:var(--line)!important}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{background:#edf3ff!important;color:var(--blue)!important;border-color:var(--line)!important}

/* Legenda CP */
.dt-legend{font-size:.875rem;color:var(--muted)}
.dt-legend ul{list-style:none;margin:0;padding:0}
.dt-legend li{margin:.15rem 0}
.dt-legend a{color:var(--blue);text-decoration:none}
.dt-legend a:hover{text-decoration:underline}

/* ===== Form nilai ===== */
.form-panel{max-width:640px}
.form-title{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.25;margin:0 0 18px;color:var(--ink)}
.form-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.form-row label{font-size:13px;font-weight:600;color:#33466a}
.form-input{flex:1;min-width:200px;padding:11px 14px;border:1px solid #cbd6ee;border-radius:12px;font-size:14px;font-family:inherit;color:var(--ink);background:#fff}
.form-input:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px #0b4dcc22}
.form-input::placeholder{color:#94a3b8}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:#fff;border:0;border-radius:999px;padding:11px 20px;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer;text-decoration:none}
.btn-primary:hover{background:#0a44b8}
.form-result{margin-top:16px}
.form-result p{margin:0 0 6px}
.alert{padding:12px 14px;border-radius:12px;font-size:13.5px;border:1px solid;margin:0}
.alert-amber{background:#fffbeb;border-color:#fde68a;color:#92400e}
.alert-slate{background:#f8fafc;border-color:#e2e8f0;color:#475569}
.badge{display:inline-block;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
.badge-green{background:#dcfce7;color:#166534}
.badge-amber{background:#fef3c7;color:#92400e}
.badge-red{background:#fee2e2;color:#991b1b}

/* Spinner loading (nilai) */
.lds-roller{display:inline-block;position:relative;width:80px;height:80px}
.lds-roller div{animation:lds-roller 1.2s cubic-bezier(0.5,0,0.5,1) infinite;transform-origin:40px 40px}
.lds-roller div:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#0b4dcc;margin:-4px 0 0 -4px}
.lds-roller div:nth-child(1){animation-delay:-.036s}
.lds-roller div:nth-child(1):after{top:63px;left:63px}
.lds-roller div:nth-child(2){animation-delay:-.072s}
.lds-roller div:nth-child(2):after{top:68px;left:56px}
.lds-roller div:nth-child(3){animation-delay:-.108s}
.lds-roller div:nth-child(3):after{top:71px;left:48px}
.lds-roller div:nth-child(4){animation-delay:-.144s}
.lds-roller div:nth-child(4):after{top:72px;left:40px}
.lds-roller div:nth-child(5){animation-delay:-.18s}
.lds-roller div:nth-child(5):after{top:71px;left:32px}
.lds-roller div:nth-child(6){animation-delay:-.216s}
.lds-roller div:nth-child(6):after{top:68px;left:24px}
.lds-roller div:nth-child(7){animation-delay:-.252s}
.lds-roller div:nth-child(7):after{top:63px;left:17px}
.lds-roller div:nth-child(8){animation-delay:-.288s}
.lds-roller div:nth-child(8):after{top:56px;left:12px}
@keyframes lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

/* ===== Responsif ===== */
@media(min-width:1250px){.class-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{gap:15px}nav{gap:8px}nav{display:none}.nav-toggle{display:grid;place-items:center}}
@media(max-width:560px){.topbar{height:64px;padding:0 16px}.brand{font-size:14px}.brand-logo{width:34px;height:34px}.profile{display:none}main{padding:24px 16px 32px}.hero{align-items:flex-start;gap:12px}.hero-icon{width:46px;height:46px;border-radius:13px}.hero-icon svg{width:27px}.hero p{font-size:13px}.classes-panel{padding:14px;border-radius:16px}.panel-head h2{font-size:16px}.class-grid{grid-template-columns:1fr;gap:10px}.class-card{padding:13px;gap:12px}.card-top{gap:10px}.class-symbol{width:42px;height:42px}.card-bottom{font-size:11px}footer{padding:16px;font-size:12px}}

/* ===== Ikon Lucide (inline SVG, stroke 2px) — ukuran per konteks ===== */
nav a svg,.nav-link svg{width:15px;height:15px;flex:none}
nav a,.nav-link{gap:6px}
.profile svg{width:18px;height:18px}
.nav-toggle svg{width:18px;height:18px}
.card-action svg{width:17px;height:17px}
.see-all{display:inline-flex;align-items:center;gap:6px}
.see-all svg{width:14px;height:14px}
.btn-primary svg{width:15px;height:15px;flex:none}
.mobile-menu a{display:flex;align-items:center;gap:8px}
.mobile-menu a svg{width:16px;height:16px;flex:none}
