/* =========================
   GLOBAL OFFLINE STYLE
   Tidak pakai Google Fonts / CDN
========================= */

* {
    box-sizing: border-box;
    font-family: Arial, "Segoe UI", sans-serif;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    color: #111827;
}

/* Background grid lokal */
.bg-grid,
.page-bg {
    min-height: 100vh;
    background-color: #fffaf0;
    background-image:
        linear-gradient(#eadfce 1px, transparent 1px),
        linear-gradient(90deg, #eadfce 1px, transparent 1px);
    background-size: 24px 24px;
}

/* =========================
   BRUTALIST COMPONENTS
========================= */

.brutal-card {
    background: #ffffff;
    border: 4px solid #000000;
    box-shadow: 7px 7px 0px #000000;
    border-radius: 18px;
}

.brutal-card-sm {
    background: #ffffff;
    border: 4px solid #000000;
    box-shadow: 5px 5px 0px #000000;
    border-radius: 16px;
}

.brutal-btn {
    border: 4px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    border-radius: 12px;
    font-weight: 900;
    transition: all 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}

.brutal-btn:active,
.brutal-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000000;
}

.brutal-input {
    border: 3px solid #000000;
    border-radius: 12px;
    outline: none;
    font-weight: 700;
}

.brutal-input:focus {
    box-shadow: 4px 4px 0px #000000;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================
   ADMIN LAYOUT OFFLINE
========================= */

.admin-layout {
    min-height: 100vh;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.admin-sidebar {
    width: 288px;
    background: #ffffff;
    border: 4px solid #000000;
    box-shadow: 7px 7px 0 #000000;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    border-bottom: 4px solid #000000;
    padding: 16px;
}

.sidebar-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #ffffff;
    color: #000000;
    border: 4px solid #000000;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #000000;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000000;
}

.sidebar-link.active {
    background: #f97316;
    color: #ffffff;
}

.admin-content {
    flex: 1;
    background: #ffffff;
    border: 4px solid #000000;
    box-shadow: 7px 7px 0 #000000;
    border-radius: 18px;
    overflow: hidden;
}

/* =========================
   TOPBAR OFFLINE
========================= */

.admin-topbar {
    min-height: 76px;
    border-bottom: 4px solid #000000;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-topbar h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.username {
    font-size: 15px;
    font-weight: 900;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border: 4px solid #000000;
    border-radius: 50%;
    background: #fde047;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.logout-btn {
    display: inline-block;
    padding: 9px 14px;
    background: #ef4444;
    color: #ffffff;
    border: 4px solid #000000;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #000000;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.15s ease;
}

.logout-btn:hover,
.logout-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000000;
}

/* =========================
   PRINT MENU PAGE OFFLINE
========================= */

.print-section {
    min-height: calc(100vh - 120px);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-wrapper {
    width: 100%;
    max-width: 900px;
}

.print-title {
    text-align: center;
    margin-bottom: 32px;
}

.print-title h3 {
    margin: 0;
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
}

.print-title p {
    margin: 8px 0 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.print-card {
    min-height: 260px;
    padding: 28px;
    border: 4px solid #000000;
    border-radius: 14px;
    box-shadow: 7px 7px 0 #000000;
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: all 0.15s ease;
}

.print-card:hover,
.print-card:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000000;
}

.print-card-blue {
    background: #3b82f6;
}

.print-card-green {
    background: #22c55e;
}

.print-icon {
    font-size: 44px;
    margin-bottom: 18px;
}

.print-card h4 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 900;
}

.print-card p {
    margin: 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.print-card-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 16px;
    background: #ffffff;
    color: #000000;
    border: 4px solid #000000;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000000;
    font-size: 15px;
    font-weight: 900;
}

/* =========================
   RESPONSIVE OFFLINE
========================= */

@media (max-width: 900px) {
    .admin-layout {
        display: block;
        padding: 12px;
    }

    .admin-sidebar {
        width: 100%;
        margin-bottom: 16px;
    }

    .sidebar-nav {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .sidebar-link {
        min-width: max-content;
        margin-bottom: 0;
    }

    .admin-topbar h2 {
        font-size: 24px;
    }

    .print-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }

    .username {
        display: none;
    }

    .print-section {
        padding: 18px;
        align-items: flex-start;
    }

    .print-title h3 {
        font-size: 28px;
    }

    .print-card {
        min-height: auto;
        padding: 22px;
    }

    .print-card h4 {
        font-size: 21px;
    }
}

/* FIX FINAL KARTU MENU PRINT */

a.print-card-blue,
.print-card-blue {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

a.print-card-green,
.print-card-green {
    background-color: #22c55e !important;
    color: #ffffff !important;
}

.print-card-local {
    display: block !important;
    min-height: 260px !important;
    padding: 28px !important;
    text-decoration: none !important;
}

.print-card-local h4 {
    margin: 0 0 12px 0 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

.print-card-local p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

.print-icon-local {
    display: block !important;
    font-size: 44px !important;
    line-height: 1 !important;
    margin-bottom: 18px !important;
}

.print-btn-local {
    display: inline-block !important;
    margin-top: 24px !important;
    padding: 10px 16px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 4px solid #000000 !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 0 #000000 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

/* =========================
   SIMPLE LOGIN ADMIN / GURU
========================= */

.login-simple-page {
    min-height: 100vh;
    background-color: #fffaf0;
    background-image:
        linear-gradient(#eadfce 1px, transparent 1px),
        linear-gradient(90deg, #eadfce 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-simple-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 18px;
    box-shadow: 8px 8px 0 #000000;
    padding: 32px 28px;
}

.login-simple-title {
    margin: 0 0 28px 0;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    color: #111827;
}

.login-simple-group {
    margin-bottom: 18px;
}

.login-simple-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 900;
    color: #111827;
}

.login-simple-input {
    width: 100%;
    height: 44px;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    background: #ffffff;
}

.login-simple-input:focus {
    background: #fefce8;
    box-shadow: 4px 4px 0 #000000;
}

.login-simple-button-wrap {
    text-align: center;
    margin-top: 24px;
}

.login-simple-button {
    background: #fde047;
    color: #000000;
    border: 4px solid #000000;
    border-radius: 10px;
    box-shadow: 4px 4px 0 #000000;
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.15s ease;
}

.login-simple-button:hover,
.login-simple-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000000;
}

.login-simple-alert {
    background: #fee2e2;
    color: #991b1b;
    border: 3px solid #000000;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.login-simple-note {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #4b5563;
}

@media (max-width: 480px) {
    .login-simple-card {
        max-width: 320px;
        padding: 28px 22px;
        box-shadow: 6px 6px 0 #000000;
    }

    .login-simple-title {
        font-size: 24px;
    }
}

/* =========================
   GURU SIMPLE APP
========================= */

.guru-page {
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.guru-app {
    min-height: 100vh;
    background: #ffffff;
    border: 5px solid #000000;
    box-sizing: border-box;
}

.guru-topbar {
    height: 58px;
    background: #d9d9d9;
    border-bottom: 4px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.guru-brand {
    font-size: 26px;
    font-weight: 900;
    color: #000000;
    letter-spacing: -1px;
}

.guru-logout {
    width: 42px;
    height: 42px;
    color: #000000;
    text-decoration: none;
    font-size: 34px;
    font-weight: 900;
    line-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guru-main {
    padding: 28px 20px;
    text-align: center;
}

.guru-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #000000;
    letter-spacing: 0.5px;
}

.guru-menu {
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.guru-menu-button {
    width: 150px;
    min-height: 58px;
    padding: 0 14px;
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    border-radius: 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: 0.12s ease;
}

.guru-menu-button:hover,
.guru-menu-button:active {
    background: #fef3c7;
    transform: translateY(2px);
}

/* Desktop biar tetap kelihatan seperti mobile app */
@media (min-width: 600px) {
    .guru-page {
        background-color: #fffaf0;
        background-image:
            linear-gradient(#eadfce 1px, transparent 1px),
            linear-gradient(90deg, #eadfce 1px, transparent 1px);
        background-size: 24px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .guru-app {
        width: 390px;
        min-height: 760px;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 8px 8px 0 #000000;
    }
}

/* ================================
   GURU APP — CELENGIN STYLE
================================ */

.guru-page {
    min-height: 100vh;
    background-color: #fffaf0;
    background-image:
        linear-gradient(#f0e6d3 1px, transparent 1px),
        linear-gradient(90deg, #f0e6d3 1px, transparent 1px);
    background-size: 28px 28px;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.guru-app {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* ---- NAVBAR ---- */
.guru-navbar {
    background: #ffffff;
    border-bottom: 3px solid #111;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 0 #111;
    position: sticky;
    top: 0;
    z-index: 10;
}

.guru-navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guru-navbar-icon {
    width: 46px;
    height: 46px;
    background: #f97316;
    border-radius: 14px;
    border: 2.5px solid #111;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.guru-navbar-title {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.guru-navbar-sub {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-top: 1px;
}

.guru-navbar-btn {
    width: 42px;
    height: 42px;
    background: #f5f5f5;
    border: 2.5px solid #111;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    transition: 0.1s ease;
}

.guru-navbar-btn:hover {
    background: #fee2e2;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #111;
}

/* ---- KONTEN ---- */
.guru-content {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.guru-greeting {
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.guru-greeting strong {
    color: #111;
    font-weight: 800;
}

/* ---- CARD ABSEN MANUAL ---- */
.guru-card {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 18px;
    box-shadow: 4px 4px 0 #111;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #111;
    transition: 0.1s ease;
}

.guru-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #111;
}

.guru-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2.5px solid #111;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.guru-card-text {
    flex: 1;
}

.guru-card-label {
    font-size: 16px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.guru-card-desc {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    font-weight: 500;
}

.guru-card-arrow {
    font-size: 28px;
    font-weight: 900;
    color: #bbb;
    line-height: 1;
}

/* ---- SCAN QR ---- */
.guru-scan-label {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guru-scan-box {
    background: #f9fafb;
    border: 2.5px solid #111;
    border-radius: 22px;
    box-shadow: 4px 4px 0 #111;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
    color: #111;
    transition: 0.1s ease;
    cursor: pointer;
}

.guru-scan-box:hover {
    background: #f0fdf4;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #111;
}

.guru-scan-qr-icon {
    opacity: 0.85;
}

.guru-scan-tap {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.2px;
}

/* ---- LAPTOP VIEW ---- */
@media (min-width: 700px) {
    .guru-page {
        padding-top: 32px;
        align-items: flex-start;
    }

    .guru-app {
        min-height: auto;
        border: 3px solid #111;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 8px 8px 0 #111;
        margin-bottom: 32px;
    }
}

/* ---- HP VIEW ---- */
@media (max-width: 699px) {
    .guru-app {
        border-left: none;
        border-right: none;
        max-width: none;
    }
}

/* ================================
   ABSEN MANUAL / KELAS PAGE
================================ */

.manual-filter-card {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 20px;
    box-shadow: 4px 4px 0 #111;
    padding: 18px;
}

.manual-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.manual-form-group label {
    font-size: 13px;
    font-weight: 900;
    color: #111;
}

.manual-input {
    width: 100%;
    height: 46px;
    border: 2.5px solid #111;
    border-radius: 14px;
    background: #ffffff;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
    outline: none;
    box-shadow: 2px 2px 0 #111;
}

.manual-input:focus {
    background: #fff7ed;
}

.manual-search-row {
    display: flex;
    gap: 10px;
}

.manual-search-row .manual-input {
    flex: 1;
}

.manual-search-btn {
    height: 46px;
    padding: 0 16px;
    border: 2.5px solid #111;
    border-radius: 14px;
    background: #f97316;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #111;
    cursor: pointer;
}

.manual-search-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #111;
}

.manual-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.manual-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-size: 18px;
    font-weight: 900;
}

.manual-student-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.manual-student-card {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 18px;
    box-shadow: 4px 4px 0 #111;
    padding: 15px;
}

.manual-student-info {
    margin-bottom: 12px;
}

.manual-student-name {
    font-size: 17px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.manual-student-meta {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-top: 4px;
}

.manual-status-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.status-btn {
    height: 38px;
    border: 2px solid #111;
    border-radius: 12px;
    box-shadow: 2px 2px 0 #111;
    text-decoration: none;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #111;
}

.status-hadir {
    background: #bbf7d0;
}

.status-izin {
    background: #fed7aa;
}

.status-sakit {
    background: #bfdbfe;
}

.status-alpa {
    background: #fecaca;
}

.manual-empty {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 18px;
    box-shadow: 4px 4px 0 #111;
    padding: 30px 20px;
    text-align: center;
}

.manual-empty-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.manual-empty-title {
    font-size: 17px;
    font-weight: 900;
    color: #111;
}

.manual-empty-desc {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Biar tombol status tetap nyaman di layar kecil */
@media (max-width: 380px) {
    .manual-status-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-btn {
        height: 40px;
    }
}

.manual-alert {
    border: 2.5px solid #111;
    border-radius: 16px;
    box-shadow: 3px 3px 0 #111;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.manual-alert-success {
    background: #bbf7d0;
}

.manual-alert-danger {
    background: #fecaca;
}

/* ================================
   INFO HASIL & PAGINATION
================================ */

.manual-result-info {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 16px;
    box-shadow: 3px 3px 0 #111;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.manual-result-info strong {
    color: #111;
    font-weight: 900;
}

.manual-pagination {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 18px;
    box-shadow: 4px 4px 0 #111;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pagination-number-wrap {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px;
}

.pagination-btn,
.pagination-number {
    min-width: 36px;
    height: 36px;
    border: 2px solid #111;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 2px 2px 0 #111;
    color: #111;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:active,
.pagination-number:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #111;
}

.pagination-active {
    background: #f97316;
    color: #ffffff;
}

.pagination-disabled {
    background: #e5e7eb;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 380px) {
    .manual-result-info {
        flex-direction: column;
    }

    .manual-pagination {
        gap: 8px;
    }

    .pagination-btn,
    .pagination-number {
        min-width: 32px;
        height: 34px;
        font-size: 12px;
    }
}

.guru-back-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 2.5px solid #111;
    border-radius: 50%;
    background: #ffffff;
    color: #111;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.guru-back-btn:hover {
    background: #fff7ed;
}

.guru-back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.guru-back-icon {
    width: 23px;
    height: 23px;
    stroke-width: 3;
}

/* ================================
   SCAN QR PAGE
================================ */

.scan-card {
    background: #ffffff;
    border: 2.5px solid #111;
    border-radius: 22px;
    box-shadow: 5px 5px 0 #111;
    padding: 18px;
}

.scan-card-header {
    margin-bottom: 14px;
}

.scan-card-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    margin: 0;
}

.scan-card-header p {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 4px 0 0;
}

.scan-box {
    background: #f0fdf4;
    border: 2.5px solid #111;
    border-radius: 18px;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.08);
    padding: 12px;
    overflow: hidden;
}

#reader {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

#reader video {
    border-radius: 14px;
}

#reader__dashboard_section_csr button,
#reader__dashboard_section_swaplink {
    display: none !important;
}

.scan-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.scan-btn {
    height: 44px;
    border: 2.5px solid #111;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #111;
    font-size: 14px;
    font-weight: 900;
    color: #111;
    cursor: pointer;
}

.scan-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.scan-btn-start {
    background: #bbf7d0;
}

.scan-btn-stop {
    background: #fecaca;
}

.scan-result-card {
    border: 2.5px solid #111;
    border-radius: 20px;
    box-shadow: 4px 4px 0 #111;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #111;
}

.scan-result-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.scan-result-content {
    flex: 1;
}

.scan-result-title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.scan-result-desc {
    font-size: 13px;
    color: #444;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.45;
}

.scan-result-idle {
    background: #ffffff;
}

.scan-result-loading {
    background: #fef3c7;
}

.scan-result-success {
    background: #bbf7d0;
}

.scan-result-error {
    background: #fecaca;
}

/* Tombol kembali SVG */
.guru-back-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 2.5px solid #111;
    border-radius: 50%;
    background: #ffffff;
    color: #111;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.guru-back-btn:hover {
    background: #fff7ed;
}

.guru-back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.guru-back-icon {
    width: 23px;
    height: 23px;
}

@media (max-width: 380px) {
    .scan-card {
        padding: 15px;
    }

    .scan-action-row {
        grid-template-columns: 1fr;
    }

    .scan-result-card {
        padding: 13px;
    }
}

/* ================================
   QR SCANNER OVERLAY GUIDE
================================ */

.scan-camera-wrap {
    position: relative;
    width: 100%;
    min-height: 360px;
    background: #111;
    border: 2.5px solid #111;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

/* Reader kamera */
.scan-camera-wrap #reader {
    width: 100%;
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
}

/* Paksa video memenuhi area card */
.scan-camera-wrap #reader video {
    width: 100% !important;
    height: 360px !important;
    object-fit: cover !important;
    border-radius: 18px;
}

/* Hilangkan beberapa UI bawaan html5-qrcode */
#reader__scan_region {
    background: transparent !important;
}

#reader__dashboard {
    display: none !important;
}

#reader__status_span {
    display: none !important;
}

/* Overlay di atas kamera */
.scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Efek gelap seperti scanner app */
    background:
        radial-gradient(circle at center, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.28) 75%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28));
}

/* Area bingkai */
.scan-frame {
    position: relative;
    width: min(78vw, 300px);
    height: min(78vw, 300px);
    max-width: 300px;
    max-height: 300px;
}

/* Garis pojok scanner */
.corner {
    position: absolute;
    width: 58px;
    height: 58px;
    border-color: #ffffff;
    border-style: solid;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.corner-tl {
    top: 0;
    left: 0;
    border-width: 6px 0 0 6px;
    border-top-left-radius: 14px;
}

.corner-tr {
    top: 0;
    right: 0;
    border-width: 6px 6px 0 0;
    border-top-right-radius: 14px;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 6px 6px;
    border-bottom-left-radius: 14px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 6px 6px 0;
    border-bottom-right-radius: 14px;
}

/* Titik putih dekorasi */
.scan-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.dot-1 {
    top: 33%;
    right: 35%;
}

.dot-2 {
    bottom: 31%;
    left: 28%;
}

.dot-3 {
    bottom: 24%;
    right: 37%;
    width: 8px;
    height: 8px;
}

.dot-4 {
    bottom: -34px;
    right: 31%;
    opacity: 0.65;
}

/* Teks petunjuk */
.scan-guide-text {
    margin-top: 28px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

/* Responsif HP kecil */
@media (max-width: 380px) {
    .scan-camera-wrap {
        min-height: 330px;
    }

    .scan-camera-wrap #reader,
    .scan-camera-wrap #reader video {
        min-height: 330px;
        height: 330px !important;
    }

    .scan-frame {
        width: 250px;
        height: 250px;
    }

    .corner {
        width: 48px;
        height: 48px;
    }

    .scan-guide-text {
        font-size: 17px;
        margin-top: 22px;
    }
}

/* ================================
   PUBLIC USER INDEX PAGE
   Halaman utama saat web dibuka
================================ */

.public-page {
    min-height: 100vh;
    margin: 0;
    background-color: #fffaf0;
    background-image:
        linear-gradient(#eadfce 1px, transparent 1px),
        linear-gradient(90deg, #eadfce 1px, transparent 1px);
    background-size: 24px 24px;
    font-family: Arial, "Segoe UI", sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 12px;
    color: #111;
}

.public-phone {
    width: 100%;
    max-width: 390px;
    min-height: 720px;
    background: #ffffff;
    border: 5px solid #000000;
    border-radius: 34px;
    box-shadow: 8px 8px 0 #000000;
    overflow: hidden;
    position: relative;
}

/* Bagian dekorasi HP atas */
.phone-status-bar {
    height: 52px;
    background: #ffffff;
    border-bottom: 4px solid #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-dot {
    width: 9px;
    height: 9px;
    background: #000000;
    border-radius: 50%;
    position: absolute;
    left: 48px;
}

.phone-speaker {
    width: 92px;
    height: 9px;
    border: 4px solid #000000;
    border-radius: 999px;
}

/* Header SP7 */
.public-header {
    height: 58px;
    background: #d9d9d9;
    border-bottom: 4px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.public-header h1 {
    margin: 0;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #111;
}

.public-login-btn {
    width: 44px;
    height: 44px;
    border: 3px solid #000000;
    border-radius: 12px;
    background: #ffffff;
    color: #111;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.12s ease;
}

.public-login-btn:hover,
.public-login-btn:active {
    background: #fef3c7;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000000;
}

.login-icon {
    width: 28px;
    height: 28px;
}

/* Isi */
.public-content {
    padding: 24px 16px 20px;
}

.public-content h2 {
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.3px;
}

.public-date {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #444;
}

/* Legend */
.presence-legend {
    margin: 26px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 900;
    color: #111;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.legend-hadir {
    background: #bbf7d0;
}

.legend-izin {
    background: #fed7aa;
}

.legend-alpa {
    background: #fecaca;
}

/* Table */
.public-table-wrap {
    border: 4px solid #000000;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
}

.public-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.public-table th {
    background: #e5e5e5;
    border: 2px solid #000000;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.public-table td {
    border: 2px solid #000000;
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    font-weight: 800;
}

.public-table tbody tr:nth-child(even) {
    background: #eeeeee;
}

.public-table td:first-child {
    text-align: left;
    width: 38%;
}

.public-table td strong {
    display: block;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.public-table td small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #444;
}

/* Status icon */
.public-status {
    width: 22px;
    height: 22px;
    border: 2.5px solid #000000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.status-hadir-public {
    background: #bbf7d0;
}

.status-izin-public {
    background: #fed7aa;
}

.status-sakit-public {
    background: #bfdbfe;
}

.status-alpa-public {
    background: #fecaca;
}

.status-kosong-public {
    background: #ffffff;
    color: #777;
}

/* Link kartu */
.public-card-link {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.eye-icon {
    width: 24px;
    height: 24px;
}

.public-empty {
    padding: 22px !important;
    font-size: 13px;
    font-weight: 900;
    text-align: center !important;
}

/* Bagian bawah HP */
.phone-bottom-bar {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-bottom-bar span {
    width: 96px;
    height: 9px;
    border: 4px solid #000000;
    border-radius: 999px;
}

/* Responsif */
@media (max-width: 430px) {
    .public-page {
        padding: 0;
        align-items: stretch;
    }

    .public-phone {
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .public-content {
        padding: 22px 14px;
    }
}

@media (max-width: 360px) {
    .public-content h2 {
        font-size: 19px;
    }

    .public-table {
        font-size: 11px;
    }

    .public-table th,
    .public-table td {
        padding: 7px 4px;
    }

    .presence-legend {
        gap: 8px;
    }

    .legend-item {
        font-size: 10px;
    }
}

/* ================================
   PUBLIC KARTU SISWA PAGE
================================ */

.kartu-phone {
    min-height: 720px;
}

.kartu-content {
    padding: 24px 18px;
}

.kartu-title-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.kartu-title-wrap h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    color: #111;
}

.kartu-title-wrap p {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.student-card-print {
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 20px;
    box-shadow: 7px 7px 0 #000000;
    overflow: hidden;
}

.student-card-header {
    background: #f97316;
    border-bottom: 4px solid #000000;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111;
}

.student-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.student-card-header p {
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 800;
}

.student-card-logo {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.student-card-body {
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 4px solid #000000;
}

.student-photo-box {
    width: 72px;
    height: 88px;
    background: #e5e7eb;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    flex-shrink: 0;
}

.student-info-box {
    flex: 1;
    min-width: 0;
}

.student-name {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 900;
    color: #111;
    line-height: 1.15;
    word-break: break-word;
}

.student-row {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #444;
}

.student-row span {
    color: #555;
}

.student-row strong {
    color: #111;
    text-align: right;
}

.student-qr-box {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 4px solid #000000;
}

.student-qr-box img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border: 4px solid #000000;
    border-radius: 14px;
    background: #ffffff;
}

.student-qr-box p {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 800;
    color: #333;
}

.student-card-footer {
    padding: 12px 14px;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    color: #111;
}

.kartu-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kartu-print-btn,
.kartu-back-btn {
    height: 46px;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #000000;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.kartu-print-btn {
    background: #bbf7d0;
}

.kartu-back-btn {
    background: #ffffff;
}

.kartu-print-btn:active,
.kartu-back-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 #000000;
}

.kartu-not-found {
    margin-top: 60px;
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 20px;
    box-shadow: 7px 7px 0 #000000;
    padding: 28px 20px;
    text-align: center;
}

.kartu-not-found-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    background: #fecaca;
    border: 3px solid #000000;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.kartu-not-found h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.kartu-not-found p {
    margin: 8px 0 20px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

/* Print kartu */
@media print {
    body {
        background: #ffffff !important;
    }

    .no-print,
    .phone-status-bar,
    .public-header,
    .phone-bottom-bar,
    .kartu-title-wrap,
    .kartu-actions {
        display: none !important;
    }

    .public-page {
        display: block !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .public-phone {
        max-width: none !important;
        min-height: auto !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .kartu-content {
        padding: 0 !important;
    }

    .student-card-print {
        width: 86mm;
        max-width: 86mm;
        margin: 10mm auto;
        box-shadow: none !important;
        border: 3px solid #000000 !important;
        border-radius: 12px !important;
        page-break-inside: avoid;
    }

    .student-card-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .student-card-footer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ================================
   PUBLIC KARTU SISWA PAGE OFFLINE
================================ */

.kartu-phone {
    min-height: 720px;
}

.kartu-content {
    padding: 24px 18px;
}

.kartu-title-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.kartu-title-wrap h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    color: #111;
}

.kartu-title-wrap p {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.student-card-print {
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 20px;
    box-shadow: 7px 7px 0 #000000;
    overflow: hidden;
}

.student-card-header {
    background: #f97316;
    border-bottom: 4px solid #000000;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111;
}

.student-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.student-card-header p {
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 800;
}

.student-card-logo {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.student-card-body {
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 4px solid #000000;
}

.student-photo-box {
    width: 72px;
    height: 88px;
    background: #e5e7eb;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    flex-shrink: 0;
}

.student-info-box {
    flex: 1;
    min-width: 0;
}

.student-name {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 900;
    color: #111;
    line-height: 1.15;
    word-break: break-word;
}

.student-row {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #444;
}

.student-row span {
    color: #555;
}

.student-row strong {
    color: #111;
    text-align: right;
}

.student-qr-box {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 4px solid #000000;
}

.student-qr-box img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border: 4px solid #000000;
    border-radius: 14px;
    background: #ffffff;
}

.student-qr-box p {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 800;
    color: #333;
}

.qr-error-box {
    padding: 20px;
    border: 3px solid #000000;
    border-radius: 14px;
    background: #fecaca;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
}

.student-card-footer {
    padding: 12px 14px;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    color: #111;
}

.kartu-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kartu-print-btn,
.kartu-back-btn {
    height: 46px;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #000000;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.kartu-print-btn {
    background: #bbf7d0;
}

.kartu-back-btn {
    background: #ffffff;
}

.kartu-print-btn:active,
.kartu-back-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 #000000;
}

.kartu-not-found {
    margin-top: 60px;
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 20px;
    box-shadow: 7px 7px 0 #000000;
    padding: 28px 20px;
    text-align: center;
}

.kartu-not-found-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    background: #fecaca;
    border: 3px solid #000000;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.kartu-not-found h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.kartu-not-found p {
    margin: 8px 0 20px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

/* Print kartu */
@media print {
    body {
        background: #ffffff !important;
    }

    .no-print,
    .phone-status-bar,
    .public-header,
    .phone-bottom-bar,
    .kartu-title-wrap,
    .kartu-actions {
        display: none !important;
    }

    .public-page {
        display: block !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .public-phone {
        max-width: none !important;
        min-height: auto !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .kartu-content {
        padding: 0 !important;
    }

    .student-card-print {
        width: 86mm;
        max-width: 86mm;
        margin: 10mm auto;
        box-shadow: none !important;
        border: 3px solid #000000 !important;
        border-radius: 12px !important;
        page-break-inside: avoid;
    }

    .student-card-header,
    .student-card-footer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ================================
   PUBLIC USER SEARCH PAGE
   Mirip desain absen manual
================================ */

.public-user-phone {
    max-width: 390px;
    min-height: 760px;
    border-radius: 28px;
    border: 4px solid #111;
    box-shadow: 7px 7px 0 #111;
    background: transparent;
    overflow: hidden;
}

.user-topbar {
    background: #ffffff;
    border-bottom: 4px solid #111;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 0 #111;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-topbar-icon {
    width: 42px;
    height: 42px;
    background: #f97316;
    border: 3px solid #111;
    border-radius: 13px;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-topbar h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
}

.user-topbar p {
    margin: 3px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}

.user-login-circle {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 3px solid #111;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #111;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-login-circle:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.user-login-icon {
    width: 24px;
    height: 24px;
}

.user-content {
    padding: 20px 16px 22px;
}

.user-filter-card {
    background: #ffffff;
    border: 3px solid #111;
    border-radius: 18px;
    box-shadow: 5px 5px 0 #111;
    padding: 17px;
    margin-bottom: 18px;
}

.user-form-group {
    margin-bottom: 14px;
}

.user-form-group:last-child {
    margin-bottom: 0;
}

.user-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 900;
    color: #111;
}

.user-input {
    width: 100%;
    height: 44px;
    border: 3px solid #111;
    border-radius: 13px;
    background: #ffffff;
    color: #111;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.user-input:focus {
    background: #fff7ed;
}

.user-search-row {
    display: flex;
    gap: 9px;
}

.user-search-row .user-input {
    flex: 1;
}

.user-search-btn {
    width: 66px;
    height: 44px;
    background: #f97316;
    color: #ffffff;
    border: 3px solid #111;
    border-radius: 13px;
    box-shadow: 3px 3px 0 #111;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.user-search-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.user-result-info {
    background: #ffffff;
    border: 3px solid #111;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #111;
    padding: 12px 13px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #333;
}

.user-result-info strong {
    color: #111;
    font-weight: 900;
}

.user-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
}

.user-section-title span {
    font-size: 15px;
}

.user-section-title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #111;
}

.user-student-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.user-student-card {
    background: #ffffff;
    border: 3px solid #111;
    border-radius: 17px;
    box-shadow: 5px 5px 0 #111;
    padding: 13px;
}

.user-student-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.user-student-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.user-student-card p {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: #444;
}

.user-card-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #f8fafc;
    border: 2.5px solid #111;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #111;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-card-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #111;
}

.user-eye-icon {
    width: 21px;
    height: 21px;
}

.user-status-row {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-status-pill,
.user-time-pill {
    min-height: 34px;
    padding: 0 14px;
    border: 2.5px solid #111;
    border-radius: 12px;
    box-shadow: 2px 2px 0 #111;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-status-hadir {
    background: #bbf7d0;
}

.user-status-izin {
    background: #fed7aa;
}

.user-status-sakit {
    background: #bfdbfe;
}

.user-status-alpa {
    background: #fecaca;
}

.user-status-empty {
    background: #e5e7eb;
}

.user-time-pill {
    background: #ffffff;
    color: #111;
}

.user-empty-state {
    margin-top: 38px;
    background: #ffffff;
    border: 3px solid #111;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #111;
    padding: 28px 20px;
    text-align: center;
}

.user-empty-small {
    margin-top: 18px;
}

.user-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    background: #fef3c7;
    border: 3px solid #111;
    border-radius: 17px;
    box-shadow: 3px 3px 0 #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.user-empty-state h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #111;
}

.user-empty-state p {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    line-height: 1.45;
}

@media (max-width: 430px) {
    .public-user-phone {
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .user-content {
        padding: 18px 14px 22px;
    }
}

@media (max-width: 360px) {
    .user-topbar h1 {
        font-size: 15px;
    }

    .user-topbar p {
        font-size: 10px;
    }

    .user-search-btn {
        width: 58px;
        font-size: 12px;
    }

    .user-student-card h3 {
        font-size: 15px;
    }
}

/* ================================
   KARTU PRESENSI SIMPLE STYLE
   Sesuai contoh gambar kedua
================================ */

.kartu-page-phone {
    max-width: 390px;
    min-height: 720px;
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 30px;
    box-shadow: 7px 7px 0 #000000;
    overflow: hidden;
}

.kartu-page-header {
    height: 58px;
    background: #d9d9d9;
    border-bottom: 4px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.kartu-page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: #111;
}

.kartu-back-circle {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #000000;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.kartu-back-circle:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000000;
}

.kartu-back-icon {
    width: 25px;
    height: 25px;
}

.kartu-page-content {
    padding: 24px 18px 22px;
}

.kartu-page-title {
    text-align: center;
    margin-bottom: 18px;
}

.kartu-page-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #111;
}

.kartu-page-title p {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 800;
    color: #555;
}

/* Kartu utama */
.kartu-simple-card {
    width: 100%;
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0 #000000;
    overflow: hidden;
}

.kartu-simple-title {
    background: #2563eb;
    color: #ffffff;
    border-bottom: 3px solid #000000;
    text-align: center;
    padding: 10px 8px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.kartu-simple-body {
    display: flex;
    gap: 12px;
    padding: 14px 12px 8px;
    min-height: 118px;
}

.kartu-simple-logo {
    width: 96px;
    height: 96px;
    border: 3px solid #000000;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-diamond {
    width: 70px;
    height: 70px;
    background: #38bdf8;
    transform: rotate(45deg);
    position: relative;
}

.logo-diamond span {
    width: 34px;
    height: 34px;
    background: #ffffff;
    display: block;
    position: absolute;
    top: 18px;
    left: 18px;
}

.kartu-simple-info {
    flex: 1;
    padding-top: 2px;
    min-width: 0;
}

.kartu-simple-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
    color: #000000;
}

.kartu-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 900;
    color: #000000;
    line-height: 1.25;
}

.kartu-info-row span {
    width: 48px;
    flex-shrink: 0;
}

.kartu-info-row strong {
    flex: 1;
    font-weight: 900;
    word-break: break-word;
}

.kartu-simple-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px 12px;
}

.kartu-simple-note {
    font-size: 12px;
    font-weight: 900;
    color: #000000;
    padding-bottom: 5px;
}

.kartu-simple-qr {
    width: 72px;
    height: 72px;
    border: 3px solid #000000;
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
}

.kartu-simple-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.qr-mini-error {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #111;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kartu-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.kartu-print-btn,
.kartu-back-btn {
    flex: 1;
    height: 48px;
    border: 3px solid #000000;
    border-radius: 13px;
    box-shadow: 4px 4px 0 #000000;
    font-size: 13px;
    font-weight: 900;
    color: #000000;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kartu-print-btn {
    background: #bbf7d0;
}

.kartu-back-btn {
    background: #ffffff;
}

.kartu-print-btn:active,
.kartu-back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000000;
}

/* Data tidak ditemukan */
.kartu-not-found {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 18px;
    box-shadow: 5px 5px 0 #000000;
    padding: 26px 18px;
    text-align: center;
}

.kartu-not-found-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    background: #fecaca;
    border: 3px solid #000000;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kartu-not-found h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.kartu-not-found p {
    margin: 8px 0 18px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

/* Print hanya kartu */
@media print {
    body {
        background: #ffffff !important;
        margin: 0;
        padding: 0;
    }

    .no-print,
    .kartu-actions,
    .phone-status-bar,
    .phone-bottom-bar,
    .kartu-page-header,
    .kartu-page-title {
        display: none !important;
    }

    .public-page {
        background: #ffffff !important;
        padding: 0 !important;
        display: block !important;
    }

    .kartu-page-phone {
        width: auto !important;
        max-width: none !important;
        min-height: auto !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .kartu-page-content {
        padding: 0 !important;
    }

    .kartu-simple-card {
        width: 8.6cm;
        height: 5.4cm;
        box-shadow: none !important;
        border: 2px solid #000000 !important;
        page-break-inside: avoid;
    }

    .kartu-simple-title {
        background: #2563eb !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

