/* ============================================
   Buku Tamu Diskominfosp - Global Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #136dec;
    --primary-dark: #0f5bc4;
    --primary-light: rgba(19, 109, 236, 0.1);
    --bg-light: #f6f7f8;
    --bg-dark: #101822;
    --navy: #0d131b;
    --silver: #cfd9e7;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --rose-600: #e11d48;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 10px 15px -3px rgba(19, 109, 236, 0.2);
    --radius: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    --transition: all 0.2s ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--slate-900);
    line-height: 1.5;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Layout
   ============================================ */
.app-container {
    position: relative;
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    overflow-x: hidden;
}

.app-mobile {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Tech Pattern Background
   ============================================ */
.tech-pattern {
    position: absolute;
    inset: 0;
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px),
        radial-gradient(var(--primary) 0.5px, var(--bg-light) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
    pointer-events: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.text-primary {
    color: var(--primary);
}

.text-slate-400 {
    color: var(--slate-400);
}

.text-slate-500 {
    color: var(--slate-500);
}

.text-slate-600 {
    color: var(--slate-600);
}

.text-slate-900 {
    color: var(--slate-900);
}

.text-white {
    color: var(--white);
}

.text-emerald {
    color: var(--emerald-700);
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.015em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-navy {
    background-color: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-navy:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: var(--white);
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background-color: var(--slate-50);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 1.125rem;
}

.btn-action {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--radius-xl);
    height: 4rem;
    padding: 0 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-action:active {
    transform: scale(0.98);
}

.btn-action-primary {
    background-color: var(--rose-600);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.2);
}

.btn-action-primary:hover {
    filter: brightness(1.1);
}

.btn-action-secondary {
    background-color: var(--white);
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.btn-action-secondary:hover {
    background-color: var(--slate-50);
}

.btn-icon-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon-bg {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-bg-light {
    background-color: var(--primary-light);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-export-excel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--emerald-600);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-export-excel:hover {
    opacity: 0.9;
}

.btn-export-excel:active {
    transform: scale(0.95);
}

.btn-export-pdf {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--rose-600);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-export-pdf:hover {
    opacity: 0.9;
}

.btn-export-pdf:active {
    transform: scale(0.95);
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    padding-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    border-radius: var(--radius-lg);
    color: var(--navy);
    border: 1px solid var(--silver);
    background-color: var(--white);
    padding: 0.9375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(19, 109, 236, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-400);
}

.form-input {
    height: 3.5rem;
}

.form-textarea {
    height: 6rem;
    resize: none;
}

.form-select {
    height: 3.5rem;
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--navy);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(19, 109, 236, 0.05);
}

.card-visitor {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.visitor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.visitor-info {
    display: flex;
    gap: 0.75rem;
}

.visitor-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.visitor-avatar-blue {
    background-color: rgba(19, 109, 236, 0.2);
    color: var(--primary);
}

.visitor-avatar-amber {
    background-color: var(--amber-100);
    color: var(--amber-600);
}

.visitor-avatar-green {
    background-color: var(--emerald-100);
    color: var(--emerald-700);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-masuk {
    background-color: var(--emerald-100);
    color: var(--emerald-700);
}

.badge-keluar {
    background-color: var(--slate-100);
    color: var(--slate-500);
}

.visitor-details {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--slate-100);
    padding-top: 0.75rem;
}

.visitor-detail-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--slate-400);
}

.visitor-detail-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-700);
}

.visitor-time {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    color: var(--slate-400);
}

/* ============================================
   Summary Card (Confirmation Page)
   ============================================ */
.summary-card {
    background-color: var(--slate-50);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    border: 1px solid var(--slate-100);
}

.summary-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-500);
}

.summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
}

/* ============================================
   Navigation Bar (Top)
   ============================================ */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.top-nav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--slate-900);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
}

.top-nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
    padding-right: 3rem;
}

/* ============================================
   Sticky Header (Admin)
   ============================================ */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(246, 247, 248, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(19, 109, 236, 0.1);
    padding: 0.75rem 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    background-color: var(--primary-light);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.header-btn:hover {
    background-color: rgba(19, 109, 236, 0.2);
}

.header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background-color: rgba(19, 109, 236, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(19, 109, 236, 0.2);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ============================================
   Bottom Navigation (Admin)
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    border-top: 1px solid rgba(19, 109, 236, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 1rem 1.5rem;
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--slate-400);
    transition: var(--transition);
}

.bottom-nav a:hover {
    color: var(--primary);
}

.bottom-nav a.active {
    color: var(--primary);
}

.bottom-nav a p {
    font-size: 0.625rem;
    font-weight: 600;
}

.bottom-nav a.active p {
    font-weight: 700;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-container {
    padding: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: var(--silver);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ============================================
   Photo Capture Area
   ============================================ */
.photo-capture-area {
    border: 2px dashed var(--silver);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(207, 217, 231, 0.1);
    position: relative;
    overflow: hidden;
}

.photo-capture-icon {
    background-color: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.photo-preview {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    display: none;
}

.photo-preview.active {
    display: block;
}

#video-preview {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    display: none;
}

/* ============================================
   Signature Pad
   ============================================ */
.signature-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--slate-50);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--slate-200);
    overflow: hidden;
}

.signature-area canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.signature-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    pointer-events: none;
}

.signature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.signature-header label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.btn-clear {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================
   Checkbox
   ============================================ */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--slate-300);
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: var(--radius-xl);
    padding: 1rem;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(19, 109, 236, 0.05);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald-500);
}

/* ============================================
   Filter Section
   ============================================ */
.filter-card {
    margin: 0 1rem;
    margin-bottom: 1rem;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter-reset {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

/* Calendar */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-nav button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 0.25rem;
}

.calendar-day-header {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-400);
    padding: 0.25rem;
}

.calendar-day {
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background-color: var(--primary-light);
}

.calendar-day.selected {
    background-color: var(--primary);
    color: var(--white);
}

.calendar-day.today {
    background-color: var(--primary-light);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(19, 109, 236, 0.2);
}

.calendar-day.muted {
    opacity: 0.3;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: var(--radius-lg);
    background-color: var(--primary-light);
    border: 1px solid rgba(19, 109, 236, 0.2);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.filter-chip:hover {
    background-color: rgba(19, 109, 236, 0.15);
}

/* ============================================
   Chart Section
   ============================================ */
.chart-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
}

/* Donut Chart */
.donut-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.donut-chart {
    position: relative;
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
}

.donut-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legend-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
}

.legend-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-600);
}

.legend-value {
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   Welcome Page Specific
   ============================================ */
.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 1.5rem 1rem;
}

.welcome-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-logo .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.875rem;
}

.welcome-logo span:last-child {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}

.welcome-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.welcome-banner {
    width: 100%;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slideshow-slide.active {
    opacity: 1;
    position: relative;
}

.slideshow-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
    z-index: 10;
}

.slideshow-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slideshow-dot.active {
    background: var(--white);
    width: 1.25rem;
}

.welcome-banner-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    padding: 1.5rem;
}

.welcome-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-location span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.welcome-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--slate-600);
    text-align: center;
    max-width: 24rem;
    margin: 0 auto;
    line-height: 1.4;
}

.welcome-actions {
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.welcome-footer {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.welcome-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    opacity: 0.5;
}

.welcome-badge-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.welcome-badge-item .material-symbols-outlined {
    font-size: 0.75rem;
}

.welcome-badge-item span:last-child {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.015em;
}

/* ============================================
   Login Page
   ============================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.login-error {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

/* ============================================
   Success Page
   ============================================ */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--emerald-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 1.5rem;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

/* ============================================
   Branding Section
   ============================================ */
.branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.branding-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.branding-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.branding-text p {
    font-size: 0.75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ============================================
   Footer Logo
   ============================================ */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
    opacity: 0.5;
}

.footer-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--navy);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon .material-symbols-outlined {
    color: var(--white);
    font-size: 0.875rem;
}

.footer-logo span:last-child {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ============================================
   Utility Classes
   ============================================ */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

/* Admin main content padding for bottom nav */
.admin-content {
    flex: 1;
    padding-bottom: 6rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 640px) {
    .welcome-banner {
        border-radius: var(--radius-xl);
        margin: 0 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Stagger animation for children */
.stagger-children>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.25s;
}

/* Search modal */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.search-overlay.active {
    display: flex;
}

.search-box {
    width: 90%;
    max-width: 400px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    width: 100%;
    border: none;
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
    font-family: inherit;
}

/* Alert messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--emerald-100);
    color: var(--emerald-700);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    color: var(--slate-600);
    background-color: var(--white);
    border: 1px solid var(--slate-200);
}

.pagination a:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination span.active {
    background-color: var(--primary);
    color: var(--white);
}