/*
 * CSS PERPUSTAKAAN SMAN 2 MAJALENGKA
 *
 * File ini dirapikan agar mudah dibaca dan diubah secara manual.
 * Setiap properti ditulis pada baris tersendiri dan bagian-bagian
 * aplikasi diberi judul komentar.
 *
 * CARA MENGUBAH:
 * - Gunakan Ctrl + F di Visual Studio Code untuk mencari nama bagian.
 * - Ubah nilai setelah tanda titik dua (:), jangan hapus kurung kurawal.
 * - Simpan dengan Ctrl + S, lalu perbarui browser dengan Ctrl + F5.
 *
 * Catatan: Ini menggunakan revisi sebelum penyesuaian font 14px.
 * Nilai ukuran font dan tampilan dipertahankan dari versi tersebut.
 */
/* ==================================================================== */
/* 01. WARNA DAN PENGATURAN DASAR */
/* ==================================================================== */
:root {
    --navy: #102c4c;
    --blue: #1769aa;
    --blue2: #257fc2;
    --pale: #eaf4fc;
    --ink: #1c2b3a;
    --muted: #718096;
    --line: #e7edf3;
    --bg: #f4f7fb;
    --white: #fff;
    --green: #16845d;
    --red: #d94b54;
    --orange: #c77a21;
    --shadow: 0 8px 28px rgba(24,54,83,.055);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans",Arial,sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,input {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,h2,h3,strong {
    font-family: "Manrope","DM Sans",sans-serif;
}

/* ==================================================================== */
/* 02. LAYOUT UTAMA DAN SIDEBAR */
/* ==================================================================== */
.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: 252px;
    background: var(--navy);
    color: #fff;
    padding: 25px 17px 17px;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 22px rgba(15,43,72,.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 8px 29px;
}

.sidebar-brand strong {
    display: block;
    font: 800 12px "Manrope",sans-serif;
    letter-spacing: 1px;
}

.sidebar-brand small {
    display: block;
    color: #a9c5dd;
    font-size: 9px;
    letter-spacing: 1.25px;
    margin-top: 5px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #1b75b6;
    border-radius: 12px;
    box-shadow: 0 7px 16px rgba(0,0,0,.12);
    flex: none;
}

.brand-mark.large {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(255,255,255,.16);
    font-size: 29px;
}

.icon-book {
    font-size: 24px;
    line-height: 1;
    color: #fff;
}

.side-label {
    padding: 0 12px;
    margin: 4px 0 10px;
    color: #7f9db9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.55px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border-radius: 9px;
    color: #c2d3e3;
    font-size: 13px;
    font-weight: 500;
    transition: .18s;
}

.nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.nav-link.active {
    background: #1c6da8;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

.nav-icon {
    width: 19px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
    color: #aac8e2;
}

.nav-link.active .nav-icon {
    color: #fff;
}

.nav-spacer {
    margin-top: 24px;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-note {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.07);
    padding: 12px;
    border-radius: 10px;
}

.note-dot {
    width: 8px;
    height: 8px;
    background: #4bd49b;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(75,212,155,.12);
}

.sidebar-note strong,.sidebar-note small {
    display: block;
}

.sidebar-note strong {
    font-size: 11px;
}

.sidebar-note small {
    font-size: 10px;
    color: #9eb7cc;
    margin-top: 3px;
}

.sidebar-footer {
    color: #7894ad;
    font-size: 10px;
    text-align: center;
    margin-top: 18px;
}

/* ==================================================================== */
/* 03. HEADER DAN AREA KONTEN */
/* ==================================================================== */
.main-area {
    margin-left: 252px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 72px;
    flex: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.breadcrumb {
    font-size: 12px;
    color: #8997a7;
}

.breadcrumb span {
    padding: 0 8px;
    color: #c1cbd5;
}

.breadcrumb strong {
    color: #364a5e;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 19px;
}

.today-chip {
    font-size: 11px;
    color: #66788a;
    background: #f5f8fb;
    border: 1px solid #edf1f5;
    padding: 8px 11px;
    border-radius: 7px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e5f1fb;
    color: #1769aa;
    font-weight: 800;
}

.user-chip strong,.user-chip small {
    display: block;
}

.user-chip strong {
    font-size: 11px;
}

.user-chip small {
    font-size: 10px;
    color: #8493a3;
    margin-top: 2px;
}

.logout-link {
    color: #8291a2;
    font-size: 20px;
    padding: 5px;
}

.logout-link:hover {
    color: var(--red);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 21px;
}

.content-area {
    width: 100%;
    max-width: 1600px;
    padding: 31px 38px 34px;
    margin: 0 auto;
    flex: 1;
}

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

.eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
    color: #267bb4;
}

.page-heading h1 {
    font: 800 25px "Manrope",sans-serif;
    letter-spacing: -.7px;
    margin: 6px 0 5px;
    color: #1a2c3e;
}

.page-heading p {
    margin: 0;
    color: #8491a0;
    font-size: 12px;
}

/* ==================================================================== */
/* 04. TOMBOL DAN NOTIFIKASI */
/* ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 12px;
    transition: .15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 5px 12px rgba(23,105,170,.14);
}

.btn-primary:hover {
    background: #105b96;
    transform: translateY(-1px);
}

.btn-light {
    background: #fff;
    border-color: #dfe7ee;
    color: #607185;
}

.btn-light:hover {
    background: #f7fafc;
    border-color: #c7d5e1;
}

.btn-sm {
    font-size: 11px;
    padding: 8px 11px;
    border-radius: 7px;
}

.btn-full {
    width: 100%;
    padding: 13px;
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 600;
}

.alert-success {
    background: #eaf8f1;
    color: #19754e;
    border: 1px solid #d3efdf;
}

.alert-danger {
    background: #fff0f0;
    color: #b53c45;
    border: 1px solid #f5dada;
}

.alert-close {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 18px;
}

/* ==================================================================== */
/* 05. DASHBOARD DAN STATISTIK */
/* ==================================================================== */
.welcome-banner {
    min-height: 160px;
    background: linear-gradient(110deg,#12395f 0%,#176ca6 100%);
    border-radius: 14px;
    color: #fff;
    padding: 26px 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 22px rgba(19,74,117,.12);
}

.welcome-banner:after {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    right: 62px;
    top: -184px;
    box-shadow: 0 0 0 28px rgba(255,255,255,.035),0 0 0 58px rgba(255,255,255,.025);
}

.welcome-kicker {
    font-size: 9px;
    letter-spacing: 1.8px;
    font-weight: 800;
    color: #a9d7f7;
}

.welcome-banner h2 {
    font: 800 24px "Manrope",sans-serif;
    margin: 9px 0 6px;
}

.welcome-banner p {
    margin: 0;
    color: #d0e5f5;
    font-size: 12px;
    max-width: 490px;
    line-height: 1.6;
}

.welcome-art {
    position: relative;
    width: 155px;
    height: 120px;
    margin-right: 38px;
    display: grid;
    place-items: center;
}

.art-circle {
    position: absolute;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.18);
}

.art-book {
    position: relative;
    font-size: 58px;
    color: white;
    filter: drop-shadow(0 7px 3px rgba(0,0,0,.15));
    transform: rotate(-8deg);
}

.art-spark {
    position: absolute;
    right: 4px;
    top: 8px;
    color: #ffcf71;
    font-size: 25px;
}

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

.stat-card,.panel {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 17px 18px 15px;
    min-width: 0;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon,.quick-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 700;
}

.stat-icon.blue,.quick-icon.blue {
    background: #eaf4fd;
    color: #2779b8;
}

.stat-icon.violet,.quick-icon.violet {
    background: #f1edff;
    color: #7865c5;
}

.stat-icon.orange,.quick-icon.orange {
    background: #fff4e5;
    color: #c17a27;
}

.stat-icon.red {
    background: #fff0f0;
    color: #d34f58;
}

.stat-icon.green,.quick-icon.green {
    background: #eaf8f1;
    color: #1a9466;
}

.stat-caption {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #a4afbb;
    font-weight: 800;
}

.stat-value {
    font: 800 27px "Manrope",sans-serif;
    letter-spacing: -1px;
    color: #20364b;
    margin: 12px 0 0;
}

.stat-label {
    font-size: 11px;
    color: #607184;
    margin-top: 2px;
}

.stat-foot {
    font-size: 10px;
    color: #8a98a7;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.foot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.blue-dot {
    background: #2c91d4;
}

.red-dot {
    background: #d94b54;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0,1.75fr) minmax(270px,1fr);
    gap: 17px;
    margin-bottom: 18px;
}

.panel {
    padding: 20px 20px 18px;
    margin-bottom: 18px;
    min-width: 0;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 17px;
}

.panel-heading h3 {
    font: 800 14px "Manrope",sans-serif;
    margin: 0;
    color: #263c50;
}

.panel-heading p {
    font-size: 10px;
    color: #95a1ad;
    margin: 5px 0 0;
}

.text-link {
    font-size: 10px;
    color: #2678b4;
    font-weight: 700;
    white-space: nowrap;
}

/* ==================================================================== */
/* 06. TABEL, DATA, DAN STATUS */
/* ==================================================================== */
.table-wrap {
    overflow-x: auto;
    width: 100%;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
    white-space: nowrap;
}

thead th {
    text-align: left;
    padding: 11px 12px;
    background: #f8fafc;
    color: #97a3b0;
    font-size: 9px;
    letter-spacing: .7px;
    font-weight: 800;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid #eff2f5;
    color: #66778a;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdff;
}

.table-primary {
    font-weight: 700;
    color: #35495e;
    font-size: 11px;
}

.table-secondary {
    font-size: 9px;
    color: #9aa6b2;
    margin-top: 4px;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.status-warning {
    background: #fff5e6;
    color: #bd7a22;
}

.status-success {
    background: #e9f8f0;
    color: #22865b;
}

.status-danger {
    background: #fff0f0;
    color: #c3444c;
}

.empty-state {
    text-align: center;
    padding: 35px 15px 31px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    background: #edf5fc;
    color: #347fb6;
    border-radius: 14px;
    font-size: 25px;
}

.empty-state strong {
    display: block;
    font: 700 13px "Manrope",sans-serif;
    color: #3e5062;
}

.empty-state p {
    color: #98a4b0;
    font-size: 10px;
    margin: 6px 0 15px;
}

.quick-panel {
    padding-bottom: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f6;
}

.quick-action:last-child {
    border: 0;
}

.quick-icon {
    width: 34px;
    height: 34px;
    flex: none;
}

.quick-action span:nth-child(2) {
    flex: 1;
}

.quick-action strong,.quick-action small {
    display: block;
}

.quick-action strong {
    font-size: 11px;
    color: #405368;
}

.quick-action small {
    font-size: 9px;
    color: #9aa6b2;
    margin-top: 3px;
}

.quick-action>b {
    font-size: 20px;
    font-weight: 400;
    color: #b0bbc6;
}

.quick-action:hover strong {
    color: #1671b1;
}

.low-stock-panel {
    margin-bottom: 0;
}

.low-stock-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 25px;
}

.low-stock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0f3f6;
}

.book-mini {
    display: grid;
    place-items: center;
    width: 31px;
    height: 36px;
    border-radius: 5px;
    background: #eaf2fa;
    color: #4b84b2;
    font-size: 18px;
    flex: none;
}

.grow {
    flex: 1;
    min-width: 0;
}

.low-stock-item strong,.low-stock-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.low-stock-item strong {
    font-size: 10px;
    color: #45586a;
}

.low-stock-item small {
    font-size: 9px;
    color: #9ba6b2;
    margin-top: 3px;
}

.stock-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 6px;
    background: #eaf7f0;
    color: #218158;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.stock-pill.stock-empty {
    background: #fff0f0;
    color: #c64b53;
}

.subtle-empty {
    padding: 20px 3px;
    color: #9aa6b2;
    font-size: 11px;
}

/* ==================================================================== */
/* 07. FORMULIR DAN PENCARIAN */
/* ==================================================================== */
.form-panel {
    border-top: 3px solid #277bb6;
}

.form-step {
    background: #edf6fd;
    color: #327cac;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px 18px;
}

.form-grid label,.filter-row label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #53677a;
    min-width: 0;
}

.required {
    color: #d74c54;
}

.form-grid input,.filter-row input,.search-form input,.return-inline input {
    width: 100%;
    height: 39px;
    border: 1px solid #dfe7ee;
    border-radius: 7px;
    padding: 0 11px;
    color: #34485c;
    background: #fff;
    outline: none;
    font-size: 11px;
    transition: .15s;
}

.form-grid input:focus,.filter-row input:focus,.search-form input:focus,.return-inline input:focus {
    border-color: #65a6d3;
    box-shadow: 0 0 0 3px rgba(48,130,190,.1);
}

.form-grid input::placeholder,.search-form input::placeholder {
    color: #b0bbc6;
}

.form-grid small {
    font-size: 9px;
    font-weight: 400;
    color: #9aa6b2;
    line-height: 1.4;
}

.form-actions {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 5px;
}

.form-note {
    font-size: 9px;
    color: #96a3af;
}

.search-form {
    display: flex;
    gap: 7px;
    align-items: center;
}

.search-form input {
    width: 225px;
    height: 35px;
}

.search-form .btn {
    padding: 8px 12px;
}

.clear-search {
    font-size: 10px;
    color: #748599;
}

/* ==================================================================== */
/* 08. TAMPILAN BUKU DAN DATA SISWA */
/* ==================================================================== */
.book-cell,.student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-cover {
    width: 30px;
    height: 36px;
    background: linear-gradient(145deg,#e2f0fc,#f1f6fa);
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: #397fb3;
    font-size: 16px;
    flex: none;
}

.book-cell strong {
    display: block;
    max-width: 240px;
    white-space: normal;
    line-height: 1.4;
    font-size: 10px;
    color: #3d5064;
}

.book-cell small {
    display: block;
    color: #9aa6b2;
    font-size: 9px;
    margin-top: 3px;
}

.mono {
    font-family: monospace;
    font-size: 10px;
    color: #63768a;
}

.category-tag {
    background: #f0f5f9;
    color: #718294;
    border-radius: 5px;
    padding: 5px 7px;
    font-size: 9px;
}

.align-right {
    text-align: right;
}

.action-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.inline-form {
    display: inline;
}

.icon-action {
    width: 28px;
    height: 28px;
    border: 1px solid #e5ebf0;
    background: #fff;
    color: #688096;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
}

.icon-action:hover {
    background: #edf6fc;
    color: #1a71ad;
    border-color: #d7e9f6;
}

.danger-action:hover {
    background: #fff1f1;
    color: #c3434a;
    border-color: #f4dada;
}

.student-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eaf3fb;
    color: #3d83b6;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
}

.student-cell strong {
    font-size: 11px;
    color: #405368;
}

.number-chip {
    font-size: 9px;
    color: #71869a;
    background: #f1f5f8;
    padding: 5px 8px;
    border-radius: 5px;
}

.setup-notice {
    display: flex;
    gap: 8px;
    background: #fff8e9;
    color: #9f7029;
    border: 1px solid #f4e5c3;
    border-radius: 7px;
    padding: 11px 13px;
    margin-bottom: 16px;
    font-size: 10px;
}

.setup-notice strong {
    white-space: nowrap;
}

.setup-notice a {
    color: #176da8;
    text-decoration: underline;
    font-weight: 700;
}

/* ==================================================================== */
/* 09. PENGEMBALIAN DAN LAPORAN */
/* ==================================================================== */
.return-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.return-inline input {
    width: 130px;
    height: 32px;
    font-size: 10px;
    padding: 0 6px;
}

.return-inline .btn {
    font-size: 10px;
    padding: 8px 9px;
}

.report-filter {
    padding-bottom: 18px;
}

.filter-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-row label {
    min-width: 180px;
}

.filter-row input {
    height: 36px;
}

.filter-row .btn {
    height: 36px;
}

.report-stats {
    margin-top: 0;
}

.stat-currency {
    font-size: 22px;
    letter-spacing: -.6px;
}

/* ==================================================================== */
/* 10. PENGATURAN AKUN */
/* ==================================================================== */
.account-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0 8px;
}

.profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #e7f2fb;
    color: #2679b5;
    display: grid;
    place-items: center;
    font: 800 23px "Manrope",sans-serif;
}

.account-profile h3 {
    font: 800 15px "Manrope",sans-serif;
    margin: 0;
    color: #2b4054;
}

.account-profile p {
    margin: 5px 0 0;
    color: #8d9aa8;
    font-size: 11px;
}

.password-grid {
    max-width: 730px;
}

.security-note {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #edf6fc;
    border: 1px solid #dfedf8;
    border-radius: 10px;
    color: #37769e;
}

.security-note>span {
    font-size: 19px;
}

.security-note strong {
    font-size: 11px;
}

.security-note p {
    font-size: 10px;
    line-height: 1.6;
    color: #6e8a9e;
    margin: 5px 0 0;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 17px 38px 20px;
    color: #a3adb8;
    font-size: 9px;
}

/* ==================================================================== */
/* 11. HALAMAN LOGIN */
/* ==================================================================== */
.login-body {
    min-height: 100vh;
    background: #edf3f8;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-shell {
    width: min(940px,100%);
    min-height: 570px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 24px 65px rgba(21,51,78,.15);
}

.login-brand {
    padding: 52px 48px;
    background: linear-gradient(145deg,#102f50,#176da6);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-brand:before {
    content: "";
    position: absolute;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    right: -225px;
    bottom: -180px;
    box-shadow: 0 0 0 32px rgba(255,255,255,.035),0 0 0 68px rgba(255,255,255,.025);
}

.login-brand .eyebrow {
    margin-top: 38px;
    color: #acd4f0;
}

.login-brand h1 {
    font: 800 31px/1.24 "Manrope",sans-serif;
    letter-spacing: -1px;
    margin: 12px 0 13px;
}

.login-brand h1 span {
    color: #9bd1f5;
}

.login-brand p {
    font-size: 12px;
    line-height: 1.8;
    color: #d0e3f1;
    max-width: 315px;
    margin: 0;
}

.login-decoration {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 37px;
}

.login-decoration span {
    display: block;
    height: 4px;
    border-radius: 5px;
    background: #7fc5f3;
}

.login-decoration span:nth-child(1) {
    width: 39px;
}

.login-decoration span:nth-child(2) {
    width: 19px;
    opacity: .65;
}

.login-decoration span:nth-child(3) {
    width: 9px;
    opacity: .4;
}

.login-brand-footer {
    margin-top: auto;
    color: #a2c1d9;
    font-size: 10px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 42px;
}

.login-form-wrap {
    width: 100%;
    max-width: 335px;
}

.login-form-wrap .eyebrow {
    font-size: 9px;
}

.login-form-wrap h2 {
    font: 800 25px "Manrope",sans-serif;
    color: #243c51;
    margin: 10px 0 7px;
}

.muted {
    font-size: 11px;
    color: #93a0ad;
    margin: 0 0 27px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-stack label {
    font-size: 11px;
    font-weight: 700;
    color: #53687c;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-stack input {
    height: 43px;
    border: 1px solid #dfe7ee;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 11px;
    outline: none;
}

.form-stack input:focus {
    border-color: #65a6d3;
    box-shadow: 0 0 0 3px rgba(48,130,190,.1);
}

.login-form-wrap .btn {
    margin-top: 6px;
}

.login-hint {
    background: #f4f8fb;
    border: 1px solid #edf2f6;
    border-radius: 7px;
    padding: 11px 12px;
    font-size: 10px;
    color: #8795a3;
    margin-top: 22px;
}

.login-hint strong {
    color: #53687c;
}

.login-copy {
    font-size: 9px;
    color: #b0bac4;
    text-align: center;
    margin-top: 38px;
}

@media (max-width:1120px) {
    .sidebar {
        width: 225px;
    }

    .main-area {
        margin-left: 225px;
    }

    .content-area {
        padding-left: 25px;
        padding-right: 25px;
    }

    .topbar {
        padding: 0 25px;
    }

    .stats-grid {
        gap: 11px;
    }

    .stat-card {
        padding: 15px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0,1.5fr) minmax(250px,1fr);
    }
}

@media (max-width:850px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
        box-shadow: 10px 0 35px rgba(13,38,63,.2);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-area {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .topbar {
        height: 62px;
        padding: 0 18px;
        gap: 12px;
    }

    .breadcrumb {
        margin-right: auto;
    }

    .content-area {
        padding: 24px 18px;
    }

    .topbar-right {
        gap: 10px;
    }

    .today-chip {
        display: none;
    }

    .app-footer {
        padding: 15px 18px;
    }

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

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

    .welcome-art {
        margin-right: 4px;
    }

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

@media (max-width:570px) {
    .content-area {
        padding: 19px 12px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

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

    .page-heading .btn {
        align-self: stretch;
    }

    .topbar {
        padding: 0 12px;
    }

    .user-chip>div {
        display: none;
    }

    .user-chip {
        gap: 0;
    }

    .logout-link {
        font-size: 18px;
    }

    .stats-grid {
        gap: 9px;
        margin: 13px 0;
    }

    .stat-card {
        padding: 13px;
    }

    .stat-value {
        font-size: 23px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-foot {
        font-size: 9px;
    }

    .welcome-banner {
        padding: 22px 19px;
        min-height: 155px;
    }

    .welcome-banner h2 {
        font-size: 20px;
    }

    .welcome-banner p {
        max-width: 270px;
        font-size: 10px;
    }

    .welcome-art {
        width: 75px;
        margin: 0;
    }

    .art-circle {
        width: 68px;
        height: 68px;
    }

    .art-book {
        font-size: 39px;
    }

    .art-spark {
        right: -2px;
        top: 10px;
        font-size: 17px;
    }

    .panel {
        padding: 16px 12px;
        margin-bottom: 13px;
    }

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

    .search-form {
        width: 100%;
    }

    .search-form input {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-note {
        width: 100%;
    }

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

    .return-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .return-inline input {
        width: 100%;
    }

    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-row label {
        width: 100%;
    }

    .filter-row .btn {
        width: 100%;
    }

    .app-footer {
        padding: 14px 12px;
        gap: 8px;
        flex-direction: column;
    }

    .login-body {
        padding: 13px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand {
        padding: 27px 26px 24px;
        min-height: 270px;
    }

    .login-brand .eyebrow {
        margin-top: 21px;
    }

    .login-brand h1 {
        font-size: 25px;
    }

    .login-brand p {
        font-size: 10px;
    }

    .login-decoration {
        margin-top: 17px;
    }

    .login-brand-footer {
        margin-top: 20px;
    }

    .login-panel {
        padding: 34px 25px;
    }

    .login-copy {
        margin-top: 27px;
    }
}

/* Cover buku dan pilihan pencarian pada formulir peminjaman */

/* ==================================================================== */
/* 15. COVER BUKU DAN UPLOAD FOTO */
/* ==================================================================== */
.book-cover-img {
    width: 38px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(27,55,79,.14);
    flex: none;
    background: #eef3f7;
}

.compact-book-cell .book-cover-img {
    width: 34px;
    height: 45px;
}

.book-mini-img {
    width: 31px;
    height: 39px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(27,55,79,.12);
    flex: none;
}

.book-cover {
    width: 38px;
    height: 50px;
    background: linear-gradient(145deg,#e2f0fc,#f1f6fa);
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #397fb3;
    font-size: 17px;
    flex: none;
}

.compact-book-cell .book-cover {
    width: 34px;
    height: 45px;
}

.low-stock-item .book-mini {
    width: 31px;
    height: 39px;
}

.cover-upload-field {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cover-upload-field>label {
    font-size: 11px;
    font-weight: 700;
    color: #53677a;
}

.cover-upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px dashed #cbdce9;
    border-radius: 10px;
    background: #f8fbfd;
}

.cover-preview {
    width: 92px;
    height: 122px;
    border-radius: 7px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #eaf2f8;
    flex: none;
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #6592b4;
    font-size: 30px;
}

.cover-placeholder small {
    font-size: 9px;
    color: #8ba0b2;
}

.cover-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cover-upload-controls input[type=file] {
    height: auto;
    max-width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 10px;
}

.cover-upload-controls>small {
    font-size: 9px;
    color: #8798a7;
}

.remove-cover-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 7px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.remove-cover-option input {
    width: 14px;
    height: 14px;
    accent-color: #287bb4;
}

/* ==================================================================== */
/* 16. PEMILIH SISWA DAN BUKU */
/* ==================================================================== */
.picker-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.picker-field>label {
    font-size: 11px;
    font-weight: 700;
    color: #53677a;
}

.picker {
    position: relative;
}

.picker-search {
    width: 100%;
    height: 42px;
    border: 1px solid #d6e2eb;
    border-radius: 8px;
    padding: 0 13px;
    background: #fff;
    color: #33495d;
    outline: none;
    font-size: 11px;
    transition: .15s;
}

.picker-search:focus {
    border-color: #65a6d3;
    box-shadow: 0 0 0 3px rgba(48,130,190,.1);
}

.picker-search::placeholder {
    color: #a0adba;
}

.picker-search.picker-selected {
    border-color: #8dc8aa;
    background: #fbfffc;
}

.picker-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow: auto;
    padding: 7px;
    background: #fff;
    border: 1px solid #dbe5ed;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(27,54,77,.16);
}

[hidden] {
    display: none !important;
}

.picker-menu-title {
    padding: 7px 9px 9px;
    color: #8293a2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.picker-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 9px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #40556a;
    transition: background .12s;
}

.picker-option:hover,.picker-option:focus {
    background: #eff7fc;
    outline: none;
}

.picker-option:disabled {
    opacity: .48;
    cursor: not-allowed;
    background: #fafbfc;
}

.picker-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f3fb;
    color: #2878b3;
    font-size: 12px;
    font-weight: 800;
    flex: none;
}

.picker-option-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.picker-option-copy strong {
    font-size: 10px;
    color: #354d63;
    white-space: normal;
    line-height: 1.35;
}

.picker-option-copy small {
    font-size: 9px;
    color: #8b9aa8;
    line-height: 1.3;
}

.picker-select-mark {
    font-size: 9px;
    font-weight: 700;
    color: #3481b7;
    background: #edf6fc;
    padding: 5px 7px;
    border-radius: 5px;
    flex: none;
}

.picker-cover,.picker-cover-placeholder {
    width: 34px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    display: grid;
    place-items: center;
    flex: none;
    background: #eaf2f9;
    color: #4c83ad;
    font-size: 16px;
}

.picker-stock {
    font-size: 9px;
    color: #23815d;
    background: #eaf7f0;
    border-radius: 5px;
    padding: 5px 7px;
    white-space: nowrap;
    flex: none;
}

.picker-stock-empty {
    color: #ba5555;
    background: #fff0f0;
}

.picker-empty {
    padding: 15px 10px;
    text-align: center;
    color: #9aa8b4;
    font-size: 10px;
}

.picker-help {
    display: block;
    font-size: 9px;
    color: #91a0ad;
    line-height: 1.5;
}

.loan-form .picker-field {
    align-self: start;
}

.loan-form .form-actions {
    margin-top: 3px;
}

@media (max-width:570px) {
    .cover-upload-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .cover-upload-controls {
        width: 100%;
    }

    .picker-menu {
        max-height: 250px;
    }

    .picker-option {
        gap: 7px;
        padding: 8px;
    }

    .picker-stock {
        font-size: 8px;
        padding: 4px 5px;
    }
}

/* Revisi tampilan: cover buku lebih mudah dikenali dan pengaturan akun di kiri bawah */

/* ==================================================================== */
/* 15. COVER BUKU DAN UPLOAD FOTO */
/* ==================================================================== */
.book-cover-img {
    width: 48px;
    height: 64px;
}

.compact-book-cell .book-cover-img {
    width: 43px;
    height: 57px;
}

.book-cover {
    width: 48px;
    height: 64px;
}

.compact-book-cell .book-cover {
    width: 43px;
    height: 57px;
}

.picker-cover,.picker-cover-placeholder {
    width: 48px;
    height: 64px;
    border-radius: 5px;
}

.book-mini-img {
    width: 40px;
    height: 52px;
}

.low-stock-item .book-mini {
    width: 40px;
    height: 52px;
}

/* ==================================================================== */
/* 17. IKON PENGATURAN DI SIDEBAR */
/* ==================================================================== */
.sidebar-account {
    width: 38px;
    height: 38px;
    margin-top: 13px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #aac8e2;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 21px;
    line-height: 1;
    transition: background .18s,color .18s,transform .18s;
}

.sidebar-account:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
    transform: translateY(-1px);
}

.sidebar-account.active {
    background: #1c6da8;
    border-color: #1c6da8;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

.sidebar-account:focus-visible {
    outline: 2px solid #9ed4fa;
    outline-offset: 3px;
}

@media (max-width:570px) {
    .picker-cover,.picker-cover-placeholder {
        width: 45px;
        height: 60px;
    }

    .book-cover-img {
        width: 45px;
        height: 60px;
    }

    .compact-book-cell .book-cover-img {
        width: 41px;
        height: 54px;
    }
}
