@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.1);
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    --secondary: #64748b;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --surface: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(203, 213, 225, 0.9);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 900px;
    --max-admin-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background: linear-gradient(-45deg, #f8fafc, #f1f5f9, #e0e7ff, #f3e8ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hidden { display: none !important; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; letter-spacing: -0.02em; }
.form-title { font-size: 1.6rem; margin-bottom: 1.5rem; text-align: left; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Layout & Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.user-container { max-width: var(--max-width); }
.admin-container { max-width: var(--max-admin-width); }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Container */
.card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 2.25rem;
    margin-bottom: 2rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}
.card:hover { box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9) inset; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 0.65rem 1.25rem; font-size: 0.95rem; font-weight: 600;
    border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer; transition: all var(--transition);
    background: var(--surface); color: var(--text-main);
    box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.btn:hover:not(:disabled) { 
    transform: translateY(-2px); box-shadow: var(--shadow-md); 
    background: #ffffff; 
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary { 
    background: var(--primary-gradient); color: white; border: none; 
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover:not(:disabled) { 
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #c026d3);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    color: white; 
}
.btn-sm {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.85rem !important;
}
.btn-outline-primary {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border: 1px solid #bfdbfe !important;
}
.btn-outline-primary:hover:not(:disabled) {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}
.btn-success {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}
.btn-success:hover:not(:disabled) {
    background: #059669 !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}
.btn-danger { color: white; background: var(--danger); border: none; }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); color: white; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
.btn-icon { padding: 0.5rem; border-radius: 50%; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Form Controls */
.form-group { margin-bottom: 1.4rem; position: relative; }
label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.94rem; color: var(--text-main); letter-spacing: -0.01em; }

input[type="text"], input[type="email"], #fullName, .email-input, .form-control, input[type="password"], input[type="number"], textarea {
    width: 100%;
    padding: 0.9rem 1.15rem;
    border: 1.5px solid rgba(203, 213, 225, 0.85);
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), inset 0 1px 2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

input[type="text"]:hover, input[type="email"]:hover, #fullName:hover, .email-input:hover, .form-control:hover, input[type="password"]:hover, input[type="number"]:hover, textarea:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

input[type="text"]:focus, input[type="email"]:focus, #fullName:focus, .email-input:focus, .form-control:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18), 0 4px 16px rgba(139, 92, 246, 0.12);
}

/* Chrome/Safari Autofill Fix to preserve sleek styling */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    border-radius: 14px !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Form Input Error Alert Banner */
.input-error-alert {
    background: rgba(254, 242, 242, 0.9);
    border: 1px solid rgba(254, 202, 202, 0.8);
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
    margin-top: 8px;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.06);
    animation: fadeIn 0.25s ease;
}

/* Drag & Drop Upload Zone */
.drop-zone {
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 3rem 1.5rem; text-align: center; cursor: pointer;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.5);
    position: relative; overflow: hidden;
}
.drop-zone:hover, .drop-zone.dragover {
    background: var(--primary-light);
    border-style: solid;
    transform: scale(1.01);
}
.drop-zone svg { width: 52px; height: 52px; color: var(--primary); margin-bottom: 1rem; filter: drop-shadow(0 4px 6px rgba(139,92,246,0.3)); transition: transform var(--transition); }
.drop-zone:hover svg { transform: translateY(-4px); }
.drop-zone input { display: none; }

/* File List Grid: 2 Columns on Desktop, 1 Column on Mobile */
.file-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    min-width: 0;
}
.file-item:hover { transform: translateY(-2px); background: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); border-color: rgba(139, 92, 246, 0.4); }
.file-info { display: flex; align-items: center; gap: 10px; overflow: hidden; min-width: 0; flex: 1; }
.file-info svg { color: #ef4444; flex-shrink: 0; width: 28px; height: 28px; filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.25)); }
.file-details { overflow: hidden; min-width: 0; }
.file-name { font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
.file-size-sub { font-weight: 500; color: var(--text-muted); font-size: 0.82rem; margin-top: 1px; }
.file-actions-col { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.btn-preview-eye {
    background: #ffffff; color: #1e293b; border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); width: 38px; height: 38px; padding: 0;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease;
}
.btn-preview-eye:hover { background: #f8fafc; transform: scale(1.08); color: var(--primary); border-color: var(--primary); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2); }
.btn-preview-eye:active { transform: scale(0.95); }

.btn-delete-x {
    background: #ef4444; color: #ffffff; border: none;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35); width: 38px; height: 38px; padding: 0;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease;
}
.btn-delete-x:hover { background: #dc2626; transform: scale(1.08); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45); }
.btn-delete-x:active { transform: scale(0.95); }

/* Submit Action Bar: Summary Stats on Left, Submit Button on Right */
.submit-action-bar {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
}

.summary-stats {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    margin: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
}

.summary-dot { opacity: 0.7; font-weight: bold; }

#submitBtn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Banned Emails Ticker Widget (Lowest position) */
.banned-widget {
    margin-top: 1.75rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.95));
    border: 1px solid rgba(252, 165, 165, 0.7);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08);
    backdrop-filter: blur(8px);
}
.banned-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
}
.banned-title-group { display: flex; align-items: center; gap: 8px; }
.banned-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.icon-danger { color: #ef4444; width: 18px; height: 18px; }
.icon-primary { color: var(--primary); width: 22px; height: 22px; }
.banned-label { font-weight: 700; font-size: 0.88rem; color: #991b1b; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }

.banned-scroll-viewport {
    height: 48px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    border: 1px solid rgba(252, 165, 165, 0.55);
    cursor: pointer;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.banned-scroll-track {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.banned-scroll-track.is-animated {
    animation: bannedInfiniteScroll var(--scroll-duration, 12s) linear infinite;
    will-change: transform;
}

@keyframes bannedInfiniteScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.banned-widget:hover .banned-scroll-track.is-animated,
.banned-scroll-viewport:hover .banned-scroll-track.is-animated,
.banned-scroll-viewport.is-paused .banned-scroll-track.is-animated {
    animation-play-state: paused;
}

.banned-scroll-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 10px;
    flex-shrink: 0;
}

.banned-name-tag,
.banned-email-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(254, 242, 242, 0.7);
    border: 1px solid rgba(252, 165, 165, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: background 0.15s ease;
}
.banned-name-tag:hover,
.banned-email-tag:hover {
    background: rgba(254, 226, 226, 0.95);
}
.banned-name-tag::before,
.banned-email-tag::before {
    content: "•";
    color: #ef4444;
    font-weight: bold;
    flex-shrink: 0;
}

.banned-empty-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
}
.banned-empty-tag::before {
    content: none;
}

/* Modals Overlay & Content */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 35, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto;
    padding: 2.25rem;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.6) inset;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transform: scale(0.93) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.modal-footer {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    display: flex; justify-content: flex-end; gap: 0.75rem;
}

/* Terms & Rules Modal Styling */
.terms-modal-content {
    max-width: 520px !important;
    padding: 1.85rem !important;
}
.terms-modal-title {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-main); font-size: 1.25rem;
}
.terms-modal-body { padding: 0.5rem 0; }
.terms-intro { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.terms-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.25rem; }
.terms-item {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(248, 250, 252, 0.85); border: 1px solid var(--border);
    padding: 0.75rem 0.95rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; color: var(--text-main); line-height: 1.45;
}
.terms-badge {
    background: var(--primary-light); color: var(--primary);
    font-weight: 700; font-size: 0.72rem; padding: 0.2rem 0.55rem;
    border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
    flex-shrink: 0; margin-top: 1px;
}
.terms-checkbox-card {
    background: rgba(139, 92, 246, 0.06); border: 1.5px solid rgba(139, 92, 246, 0.3);
    padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem;
}
.terms-checkbox-label {
    display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin: 0;
}
.terms-checkbox { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.terms-checkbox-text { font-weight: 700; font-size: 0.92rem; color: var(--text-main); }
.terms-modal-footer { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: 10px; }

/* Mobile PDF Canvas Preview Modal */
#previewModal {
    z-index: 999999 !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #0f172a !important;
}

.preview-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    background: #0f172a !important;
    overflow: hidden !important;
}
.preview-modal-header {
    padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
    padding-bottom: 0.75rem !important;
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
    margin: 0 !important;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
    z-index: 30;
    width: 100% !important;
    flex-shrink: 0;
}
.preview-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; }
.preview-header-left h3 {
    color: #ffffff !important; font-size: 0.95rem; font-weight: 600;
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
    margin: 0; flex: 1; min-width: 0;
}
.preview-page-badge {
    background: rgba(139, 92, 246, 0.25); color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
    white-space: nowrap !important; font-size: 0.75rem;
    padding: 0.25rem 0.55rem; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center;
}
.preview-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-outline-light {
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap !important; font-size: 0.8rem; padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; gap: 4px; text-decoration: none; flex-shrink: 0;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn-outline-light .btn-text { white-space: nowrap !important; }

.preview-body { flex: 1; position: relative; overflow: hidden; background: #0f172a; display: flex; align-items: center; justify-content: center; }
.preview-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.9); z-index: 30; }
.canvas-scroll-container { width: 100%; height: 100%; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 1rem; -webkit-overflow-scrolling: touch; }
#pdfPreviewCanvas { max-width: 100%; height: auto !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 4px; background: #fff; margin: auto; }
.hidden-iframe { display: none; width: 100%; height: 100%; border: none; }

.preview-footer {
    padding-top: 0.75rem !important;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    background: #111827; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; gap: 16px; z-index: 20;
    flex-shrink: 0;
}
.btn-nav { background: rgba(255,255,255,0.15); color: #fff; border: none; }
.btn-nav:hover:not(:disabled) { background: var(--primary); color: #fff; }

/* Toast Notifications */
.toast-container { position: fixed; bottom: 90px; right: 25px; z-index: 4000; display: flex; flex-direction: column; gap: 12px; }

/* Floating Support Button & Label */
.support-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4000;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-float-label {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.01em;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.support-float-btn.show-label .support-float-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.support-float-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
    border: 2px solid #ffffff;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.support-float-btn:hover .support-float-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #c026d3);
}

.support-float-icon svg {
    width: 26px;
    height: 26px;
}
.toast {
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    border-left: 5px solid var(--primary); padding: 1.1rem 1.6rem; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.4s ease-out 2.6s forwards;
    font-weight: 600; color: var(--text-main); font-size: 1rem;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

/* Autocomplete Suggestions Dropdown */
.autocomplete-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15); margin-top: 6px;
    max-height: 220px; overflow-y: auto; z-index: 1000;
}
.autocomplete-item {
    padding: 0.75rem 1rem; cursor: pointer; display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; color: var(--text-main); border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: background 0.15s ease, color 0.15s ease;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.autocomplete-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.autocomplete-highlight { font-weight: 700; color: var(--primary); text-decoration: underline; }

#fullName[readonly] {
    background-color: rgba(241, 245, 249, 0.9) !important;
    cursor: not-allowed !important; border-color: #10b981 !important;
    font-weight: 600; color: var(--text-main); user-select: none;
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.3); border-radius: 50%;
    border-top: 3px solid white; width: 20px; height: 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* SVG Icons */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   ADMIN DASHBOARD DESIGN SYSTEM & STYLES
   ========================================================================== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #faf8ff 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px -4px rgba(139, 92, 246, 0.08), 0 1px 0 0 rgba(226, 232, 240, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.admin-header .logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-nav-actions .btn {
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(20px, 20px);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -6px rgba(139, 92, 246, 0.12), 0 4px 8px -2px rgba(0,0,0,0.06);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.stat-card .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Main Card & Search Filters */
.admin-main-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 42px !important;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.date-filter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-sm) !important;
    background: #ffffff !important;
    color: #0f172a;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.date-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
    outline: none;
}

.date-separator {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-actions-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Responsive & Layout */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.7);
    background: #ffffff;
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.06);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    text-align: left;
}

.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
}

.admin-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr {
    transition: background 0.15s ease;
}
.admin-table tr:hover td {
    background: rgba(139, 92, 246, 0.03);
}

/* Table Actions Column */
td.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.btn-action-view, .btn-action-download, .btn-action-delete {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-action-view {
    background: #ffffff !important;
    color: #6366f1 !important;
    border-color: #e2e8f0 !important;
}
.btn-action-view:hover {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border-color: #bfdbfe !important;
    transform: translateY(-1px);
}

.btn-action-download {
    background: #ffffff !important;
    color: #10b981 !important;
    border-color: #e2e8f0 !important;
}
.btn-action-download:hover {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
    transform: translateY(-1px);
}

.btn-action-delete {
    background: #ffffff !important;
    color: #ef4444 !important;
    border-color: #e2e8f0 !important;
}
.btn-action-delete:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
    transform: translateY(-1px);
}

/* Status Badge Button */
.btn-status {
    border: none;
    font-size: 0.78rem;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    white-space: nowrap;
}
.btn-status.printed {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.btn-status.printed:hover {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-status.pending {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border: 1px solid #fcd34d;
}
.btn-status.pending:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.btn-status.claimed {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}
.btn-status.claimed:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Enhanced person submission date-group card */
.date-group-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.date-group-card:hover {
    box-shadow: 0 6px 20px -4px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

/* Person modal avatar badge */
.person-modal-avatar {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

/* File row in person modal */
.submission-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.submission-file-row:hover {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Student dir table row */
.students-table-row:hover td { background: rgba(139, 92, 246, 0.03); }

/* ==========================================================================
   MOBILE PHONES RESPONSIVE UX/UI OVERRIDES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem 0.5rem !important;
    }
    .card {
        padding: 1.25rem 0.95rem !important;
        border-radius: var(--radius-md) !important;
        margin-bottom: 1rem !important;
    }
    .form-title {
        font-size: 1.3rem !important;
        margin-bottom: 1.15rem !important;
    }
    .form-group {
        margin-bottom: 1.15rem !important;
    }
    label {
        font-size: 0.88rem !important;
    }
    input[type="text"], input[type="email"], #fullName, textarea {
        font-size: 0.92rem !important;
        padding: 0.75rem 0.95rem !important;
    }
    #fullName {
        padding-left: 44px !important;
    }
    .drop-zone {
        padding: 2.1rem 0.85rem !important;
        border-radius: var(--radius-sm) !important;
    }
    .drop-zone svg {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 0.75rem !important;
    }
    .drop-zone h3 {
        font-size: 1.05rem !important;
    }

    /* 1 Column for Mobile Phones */
    .file-list {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
        margin-top: 1.25rem !important;
    }
    .file-item {
        padding: 0.85rem 0.95rem !important;
        gap: 0.65rem !important;
    }
    .file-info { gap: 10px !important; }
    .file-info svg { width: 26px !important; height: 26px !important; }
    .file-name { font-size: 0.9rem !important; }
    .file-size-sub { font-size: 0.78rem !important; }
    .btn-preview-eye, .btn-delete-x { width: 36px !important; height: 36px !important; }

    /* Mobile Submit Action Bar (Compact Stats & Submit Button) */
    .submit-action-bar {
        margin-top: 1.25rem !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    .summary-stats {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.82rem !important;
    }
    #submitBtn {
        padding: 0.65rem 1.1rem !important;
        font-size: 0.9rem !important;
    }

    /* Mobile Banned Widget */
    .banned-widget {
        margin-top: 1.25rem !important;
        padding: 0.65rem 0.85rem !important;
    }
    .banned-label { font-size: 0.8rem !important; }
    .badge-danger { font-size: 0.7rem !important; padding: 0.25rem 0.5rem !important; }

    /* Mobile Terms Modal CP Overrides */
    .terms-modal-content {
        padding: 1.25rem 0.95rem !important;
        max-width: 92vw !important;
        margin: auto !important;
    }
    .terms-intro {
        font-size: 0.88rem !important;
        margin-bottom: 0.75rem !important;
    }
    .terms-item {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.82rem !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .terms-badge {
        align-self: flex-start !important;
    }
    .terms-checkbox-card {
        padding: 0.75rem 0.85rem !important;
    }
    .terms-checkbox-text {
        font-size: 0.85rem !important;
    }
    .terms-modal-footer {
        margin-top: 1.25rem !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    /* Preview Modal Header Mobile Overrides */
    .preview-modal-header {
        padding: 0.65rem 0.75rem !important;
        gap: 0.35rem !important;
    }
    .preview-header-left h3 {
        font-size: 0.88rem !important;
    }
    .preview-page-badge {
        display: none !important;
    }
    .btn-outline-light {
        padding: 0.35rem 0.55rem !important;
        font-size: 0.78rem !important;
    }

    /* Mobile Admin Overrides */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .admin-nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .date-filter-wrap {
        justify-content: space-between;
    }
}

/* ==========================================================================
   SLIDE-OUT BURGER DRAWER MENU STYLES
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: #ffffff;
    z-index: 5001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-panel.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    background: #f8fafc;
}

.drawer-tabs {
    display: flex;
    gap: 4px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
}

.drawer-tab {
    flex: 1;
    padding: 0.55rem 0.4rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #64748b;
    white-space: nowrap;
}

.drawer-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.drawer-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 800;
    pointer-events: none;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.badge-printed {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.badge-claimed {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.btn-drawer-claim {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-drawer-claim:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.drawer-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.drawer-search-wrap input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    width: 100%;
    box-shadow: none !important;
}

.drawer-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.drawer-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.drawer-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.drawer-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.drawer-item-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Burger Menu Notification Badge for Unclaimed Printed Files */
.burger-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
    pointer-events: none;
    line-height: 1;
    z-index: 10;
    box-sizing: border-box;
    animation: burgerBadgePulse 2.5s infinite ease-in-out;
}

@keyframes burgerBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.75);
    }
}

