/* ============================================
   CSS Custom Properties & Reset
   ============================================ */
:root {
    /* Background */
    --bg-gradient-start: #000000;
    --bg-gradient-mid: #111111;
    --bg-gradient-end: #1a1a1a;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    --glass-blur: 18px;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;

    /* Accent */
    --accent: #ffffff;
    --accent-hover: #e5e5e5;
    --accent-glow: rgba(255, 255, 255, 0.25);

    /* Status Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);

    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);

    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.15);

    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    /* Animation */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Font */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Animated Background Orbs
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 18s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6c5ce7, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #00c897, transparent 70%);
    bottom: -12%;
    right: -8%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
    animation-duration: 22s;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(60px, -40px) scale(1.08);
    }
    50% {
        transform: translate(-30px, -80px) scale(0.94);
    }
    75% {
        transform: translate(-50px, 30px) scale(1.05);
    }
}

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.toast.removing {
    animation: slideOutRight 0.35s ease-in forwards;
}

.toast-success {
    background: rgba(0, 200, 151, 0.2);
    border: 1px solid rgba(0, 200, 151, 0.4);
    color: #a0f0d8;
}

.toast-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f8b0b0;
}

.toast-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd89d;
}

.toast-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #a8c8f8;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    font-size: 0.85rem;
    flex-shrink: 0;
    padding: 2px;
    transition: var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ============================================
   Main Container
   ============================================ */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ============================================
   Header
   ============================================ */
.header {
    text-align: center;
    padding: 20px 0 30px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
    font-size: 2rem;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.admin-link {
    position: absolute;
    top: 24px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.admin-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Upload Card
   ============================================ */
.upload-card {
    padding: 35px 30px;
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.card-header i {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 18px var(--accent-glow));
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-group label i {
    color: var(--accent);
    font-size: 0.85rem;
}

.required {
    color: var(--danger);
}

.optional {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.error-msg {
    display: block;
    color: var(--danger);
    font-size: 0.78rem;
    margin-top: 5px;
    min-height: 18px;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 6px;
}

.toggle-password:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Drop Zone
   ============================================ */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    padding: 45px 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
    position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.08);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.2);
}

.drop-zone.drag-over .drop-icon {
    animation: bounce 0.6s ease-in-out infinite;
}

.drop-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    transition: var(--transition);
}

.drop-zone-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.drop-zone-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.supported-formats {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.max-size {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   File List
   ============================================ */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.3s ease-out;
}

.file-item-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent);
}

.file-item-icon.pdf {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.file-item-icon.image {
    background: rgba(0, 200, 151, 0.2);
    color: #00c897;
}

.file-item-icon.doc {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.file-item-icon.sheet {
    background: rgba(0, 200, 151, 0.2);
    color: #00c897;
}

.file-item-icon.presentation {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.file-item-remove:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-container {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00c897);
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s ease-out;
}

.progress-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn-upload {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #5a4bd1);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-upload:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-hover), #6b5ce0);
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-upload:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(30%);
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
}

/* ============================================
   Info Cards
   ============================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.info-card {
    padding: 22px 20px;
    text-align: center;
}

.info-card i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   Login Screen
   ============================================ */
.login-screen {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 35px;
    text-align: center;
}

.login-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(108, 92, 231, 0.4);
}

.login-icon i {
    font-size: 1.8rem;
    color: var(--accent);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.login-card>p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-admin {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(108, 92, 231, 0.3);
    color: #c4b8ff;
    border: 1px solid rgba(108, 92, 231, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.session-info i {
    color: var(--warning);
}

.btn-logout,
.btn-back {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover,
.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-logout {
    color: #f8b0b0;
}

.dashboard-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ============================================
   Stats Row
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.total {
    background: rgba(108, 92, 231, 0.2);
    color: #b8a8ff;
}

.stat-icon.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd89d;
}

.stat-icon.printed {
    background: rgba(0, 200, 151, 0.2);
    color: #80e8c8;
}

.stat-icon.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #f8a0a0;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ============================================
   Search Card
   ============================================ */
.search-card {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.9rem;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-clear-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-clear-search:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-refresh {
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Table Card (UPDATED: WIDER, SMALLER FONT, COMPACT PADDING)
   ============================================ */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* UPDATED TABLE STYLES */
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px; /* Increased from 900px to give columns more breathing room */
    font-size: 0.75rem; /* Reduced from 0.88rem */
}

.jobs-table thead th {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 8px; /* Reduced from 12px 14px */
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Slightly reduced */
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.jobs-table tbody td {
    padding: 8px 8px; /* Reduced from 13px 14px */
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.jobs-table tbody tr {
    transition: var(--transition);
}

.jobs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.jobs-table tbody tr.row-expired {
    opacity: 0.5;
    background: rgba(239, 68, 68, 0.05);
}

/* UPDATED JOB STATUS BADGE */
.job-status {
    display: inline-block;
    padding: 2px 8px; /* Reduced from 4px 12px */
    border-radius: 20px;
    font-size: 0.65rem; /* Reduced from 0.75rem */
    font-weight: 600;
    letter-spacing: 0.3px;
}

.job-status.pending {
    background: var(--warning-bg);
    color: #fcd89d;
}

.job-status.printed {
    background: var(--success-bg);
    color: #80e8c8;
}

.job-status.expired {
    background: var(--danger-bg);
    color: #f8a0a0;
}

/* UPDATED ACTION BUTTONS */
.action-btns {
    display: flex;
    gap: 4px; /* Slightly reduced gap */
}

.btn-action {
    width: 28px; /* Reduced from 34px */
    height: 28px; /* Reduced from 34px */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 0.7rem; /* Reduced from 0.8rem */
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-action.view:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #a8c8f8;
}

.btn-action.print:hover {
    background: rgba(108, 92, 231, 0.3);
    border-color: var(--accent);
    color: #c4b8ff;
}

.btn-action.download:hover {
    background: rgba(0, 200, 151, 0.3);
    border-color: #00c897;
    color: #80e8c8;
}

.btn-action.delete:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #f8a0a0;
}

/* Table States */
.table-loading,
.table-empty,
.table-error {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.table-loading i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.table-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    opacity: 0.5;
}

.table-empty h4,
.table-error h4 {
    color: #fff;
    margin-bottom: 4px;
}

.table-error i {
    font-size: 2.5rem;
    color: var(--danger);
    margin-bottom: 10px;
}

.btn-retry {
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-retry:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.modal-card {
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

.modal-sm {
    max-width: 420px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px 22px;
}

.modal-body .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.modal-body .detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-body .detail-value {
    color: #fff;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-modal-close-action {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #f05050;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.warning-text {
    color: #f8a0a0;
    font-size: 0.8rem;
    margin-top: 8px;
}

.delete-job-info {
    font-weight: 600;
    color: #fff;
    margin-top: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .main-container {
        padding: 15px 12px 40px;
    }

    .upload-card {
        padding: 24px 16px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .admin-link {
        position: static;
        display: block;
        margin-top: 12px;
        text-align: center;
    }

    .header {
        padding: 10px 0 20px;
    }

    .drop-zone {
        padding: 28px 14px;
    }

    .drop-icon {
        font-size: 2.5rem;
    }

    .drop-zone-content h3 {
        font-size: 1rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-content {
        padding: 16px 10px 40px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .search-card {
        flex-direction: column;
        align-items: stretch;
    }

    .table-header {
        padding: 14px 16px;
    }

    .jobs-table {
        min-width: 1100px; /* Keeps it wide even on tablets so it's less cramped */
        font-size: 0.7rem; /* Even smaller on tablets */
    }

    .jobs-table thead th,
    .jobs-table tbody td {
        padding: 6px 6px;
    }

    .btn-action {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .toast {
        min-width: auto;
        max-width: 90vw;
        right: 10px;
        left: 10px;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        align-items: stretch;
    }

    .modal-card {
        max-width: 95vw;
    }
}

@media (max-width: 400px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .btn-logout,
    .btn-back {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}