@import url('modules/settings/settings.css');
@import url('modules/dashboard/dashboard.css');
@import url('modules/super_admin/super_admin.css');

/* ==========================================================================
   printQ - DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

:root {
    --bg-primary: #f8f9fc;
    --bg-card: #ffffff;
    
    --sidebar-bg: #0b0e14;
    --sidebar-text-muted: #94a3b8;
    --sidebar-text-active: #ffffff;
    
    --accent-blue: #1859f5;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: #eff6ff;
    
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-green-light: #ecfdf5;

    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --accent-red-light: #fef2f2;
    
    --border-color: #e2e8f0;
    --border-color-dark: #1e293b;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DARK THEME VARIABLES
   ========================================================================== */
[data-theme="dark"] {
    --bg-primary: #0b0f19;
    --bg-card: #111827;
    --border-color: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #4b5563;
    
    --accent-blue-light: rgba(24, 89, 245, 0.15);
    --accent-green-light: rgba(16, 185, 129, 0.15);
    --accent-red-light: rgba(239, 68, 68, 0.15);
}

/* Specific Dark Theme Component Overrides */
[data-theme="dark"] .sub-plan-card {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .sub-plan-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
[data-theme="dark"] .sub-plan-title {
    color: #34d399;
}
[data-theme="dark"] .sub-plan-price {
    color: #a7f3d0;
}
[data-theme="dark"] .sub-plan-details-row {
    border-top: 1px dashed rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .sub-plan-detail-label {
    color: #34d399;
}
[data-theme="dark"] .sub-plan-detail-value {
    color: #a7f3d0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: auto;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TRANSITION/HOVER EFFECT (UPWARD MOVEMENT)
   ========================================================================== */

.hover-up {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

.hover-up:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(24, 89, 245, 0.15);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   SIDEBAR STYLES (LEFT COLUMN)
   ========================================================================== */

.sidebar {
    width: 210px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text-muted);
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color-dark);
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.logo-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 18px;
    height: 18px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--sidebar-text-muted);
    font-weight: 500;
    font-size: 13px;
}

.nav-item i {
    width: 18px;
    height: 18px;
}

.nav-item.active {
    background-color: var(--accent-blue);
    color: var(--sidebar-text-active);
}

.nav-item.active:hover {
    box-shadow: 0 4px 12px rgba(24, 89, 245, 0.3);
}

.nav-item .badge {
    margin-left: auto;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.sidebar-status {
    padding: 4px 8px;
    margin-bottom: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.status-indicator.online {
    color: var(--accent-green);
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

/* Shop QR Section */
.qr-section {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color-dark);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 16px;
}

.qr-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.qr-code-container {
    background-color: white;
    padding: 6px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.qr-image {
    width: 100%;
    max-width: 110px;
    height: auto;
    display: block;
}

.qr-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
}

.qr-stat-row {
    display: flex;
    justify-content: space-between;
    color: var(--sidebar-text-muted);
}

.stat-count {
    color: #ffffff;
    font-weight: 600;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Force QR action buttons in the dark sidebar to remain light in all themes */
.qr-actions .btn-outline {
    background-color: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.qr-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color-dark);
    padding-top: 10px;
    margin-top: auto;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
}

.logout-link:hover {
    color: #ef4444;
}

/* ==========================================================================
   MAIN CONTENT AREA (CENTER + RIGHT)
   ========================================================================== */

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex items from overflowing */
    height: 100%;
    overflow-y: auto;
}

/* Top Bar Header */
.top-bar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    flex-shrink: 0;
}

/* Sidebar Collapsed State */
.app-container.sidebar-collapsed .sidebar {
    width: 0px;
    padding-left: 0px;
    padding-right: 0px;
    opacity: 0;
    pointer-events: none;
    border-right-width: 0px;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 16px;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.page-title-area {
    margin-right: auto;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent-green-light);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.dot-green {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.profile-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

/* Dashboard Body grid */
.dashboard-body {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.queue-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   CONTROLS ROW (TOP OF MAIN CONTENT)
   ========================================================================== */

.controls-row {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.controls-row-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.controls-row-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.info-banner-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-grow: 1;
}

.info-banner-inline .info-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.btn-print-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    height: 36px;
    transition: all 0.2s ease;
}

.btn-print-options i {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.btn-print-options:hover {
    background-color: var(--bg-primary);
}

.print-mode-selector {
    display: flex;
    background-color: var(--bg-primary);
    border: 1.5px solid #000000;
    padding: 4px;
    border-radius: var(--radius-md);
}

.mode-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-btn.active {
    background-color: var(--accent-blue);
    color: white;
}

.mode-btn i {
    width: 14px;
    height: 14px;
}

.info-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-blue-light);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    flex-grow: 1;
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 500;
}

.info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.printer-select-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.custom-select {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 36px;
    width: 165px;
}

.custom-select select {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding-right: 20px;
    padding-left: 28px;
    cursor: pointer;
    appearance: none;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.select-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.select-chevron {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    width: 100%;
    padding: 10px 14px;
}

.btn-outline:hover {
    background-color: var(--bg-primary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-refresh {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    height: 38px;
}

.btn-refresh i {
    width: 14px;
    height: 14px;
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
    padding: 8px 16px;
}

.btn-success:hover {
    background-color: var(--accent-green-hover);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    padding: 10px 24px;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
}

/* ==========================================================================
   QUEUE ACCORDION LIST
   ========================================================================== */

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 6px;
}

/* Warning/Fail action button in table */
.btn-table-fail {
    background-color: var(--bg-card);
    border: 1px solid #d97706;
    color: #d97706;
    padding: 6px 12px;
}
.btn-table-fail:hover {
    background-color: #fffbeb;
    color: #d97706;
}
.btn-table-fail i {
    width: 12px;
    height: 12px;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color var(--transition-smooth);
}

.accordion-item.expanded .accordion-header {
    border-bottom-color: var(--border-color);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon {
    width: 18px;
    height: 18px;
}

.job-id-badge {
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.customer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.meta-dot {
    color: var(--text-muted);
}

.accordion-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-summary-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-item i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.stat-item.price {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

.header-printer-select {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: var(--radius-md);
}

.small-select {
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.dropdown-icon-right {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   FILES TABLE (INSIDE ACCORDION)
   ========================================================================== */

.accordion-content {
    max-height: 0;
    transition: max-height var(--transition-smooth);
    overflow: hidden;
}

.accordion-item.expanded .accordion-content {
    max-height: 800px; /* High enough to hold the files list and summary */
    overflow-y: auto;
}

.accordion-content-inner {
    min-height: 0;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.files-table th {
    text-align: left;
    padding: 12px 20px;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.file-row {
    border-bottom: 1px solid var(--border-color);
}

.file-row td {
    padding: 14px 20px;
    vertical-align: middle;
}

.file-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon-wrapper.pdf {
    background-color: #fef2f2;
    color: #ef4444;
}

.file-icon-wrapper.image {
    background-color: #f0fdf4;
    color: var(--accent-green);
}

.file-icon-wrapper i {
    width: 18px;
    height: 18px;
}

.file-name-wrapper {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.file-size {
    font-size: 11px;
    color: var(--text-secondary);
}

.badge-pages {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.badge-external {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: spoolerPulse 2s ease-in-out 3;
    vertical-align: middle;
}

@keyframes spoolerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.print-options-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}

.print-options-tag i {
    width: 13px;
    height: 13px;
    color: var(--text-secondary);
}

.table-printer-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: var(--radius-md);
}

.table-select {
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.action-buttons-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.btn-table-edit {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
}

.btn-table-edit i {
    width: 12px;
    height: 12px;
}

.btn-table-print {
    background-color: var(--accent-green);
    color: white;
    padding: 6px 16px;
}

.btn-table-print:hover {
    background-color: var(--accent-green-hover);
}

.btn-more {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
}

/* Summary Row inside Accordion Table */
.table-summary-bar {
    background-color: var(--bg-primary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.table-summary-bar strong {
    color: var(--text-primary);
}

.table-summary-bar .divider {
    color: var(--border-color);
}

.table-summary-bar .total-price {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-primary);
}

/* ==========================================================================
   QUEUE FOOTER / PAGINATION
   ========================================================================== */

.queue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-top: 8px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-summary-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-stat {
    font-size: 13px;
    color: var(--text-primary);
}

.footer-printer-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.btn-collapse-all {
    background-color: var(--bg-card);
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-family);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-collapse-all:hover {
    background-color: var(--bg-secondary);
}

.btn-collapse-all i {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   RIGHT SIDEBAR PANEL (CARDS)
   ========================================================================== */

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.panel-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* Compact variant for Today's Summary */
.panel-card-compact {
    padding: 14px 16px;
}

.card-header-with-close {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.close-card-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.close-card-btn i {
    width: 16px;
    height: 16px;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.app-item:hover {
    background-color: #f1f5f9;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: 700;
}

.app-icon.pdf {
    background-color: #ef4444;
}

.app-icon.word {
    background-color: #2563eb;
}

.app-icon.photoshop {
    background-color: #001e36;
    color: #31a8ff;
}

.app-icon.paint {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.app-icon.coreldraw {
    background-color: #10b981;
}

.app-icon.notepad {
    background-color: #64748b;
}

.app-icon.plus {
    background-color: var(--bg-card);
    border: 1.5px dashed var(--border-color);
    color: var(--text-secondary);
}

.app-details {
    display: flex;
    flex-direction: column;
}

.app-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Today's Summary Card - compact vertical list */
.summary-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Compact single-row stat block */
.summary-stat-block {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.summary-stat-block:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.summary-stat-block.highlight-green {
    background-color: var(--accent-green-light);
    border-color: rgba(16, 185, 129, 0.2);
}

.summary-stat-block.highlight-amber {
    background-color: #fffbeb;
    border-color: rgba(217, 119, 6, 0.2);
}

.stat-info-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.stat-big-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-family);
}

.stat-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper.green-bg {
    background-color: var(--accent-green-light);
}

.stat-icon-wrapper.red-bg {
    background-color: var(--accent-red-light);
}

.stat-icon-wrapper.amber-bg {
    background-color: #fffbeb;
}

.text-blue {
    color: var(--accent-blue);
}
i.text-blue, svg.text-blue {
    width: 15px;
    height: 15px;
}

.text-green {
    color: var(--accent-green);
}
i.text-green, svg.text-green {
    width: 15px;
    height: 15px;
}

.text-red {
    color: var(--accent-red);
}
i.text-red, svg.text-red {
    width: 15px;
    height: 15px;
}

.text-amber {
    color: #d97706;
}
i.text-amber, svg.text-amber {
    width: 15px;
    height: 15px;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View Report button inside each stat block */
.btn-stat-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.btn-stat-report i {
    width: 11px;
    height: 11px;
}

.btn-stat-report:hover {
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-stat-report-green {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-stat-report-green:hover {
    background-color: var(--accent-green-light) !important;
    color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.btn-stat-report-amber {
    border-color: #d97706;
    color: #d97706;
}

.btn-stat-report-amber:hover {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border-color: #d97706 !important;
}

/* Inline View Report pill button (sits to the right of label+value) */
.btn-stat-report-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-stat-report-inline i {
    width: 10px;
    height: 10px;
}

.btn-stat-report-inline:hover {
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-stat-report-inline-green {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-stat-report-inline-green:hover {
    background-color: var(--accent-green-light) !important;
    color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
}

.btn-stat-report-inline-amber {
    border-color: #d97706;
    color: #d97706;
}

.btn-stat-report-inline-amber:hover {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border-color: #d97706 !important;
}

.btn-stat-report-inline-blue {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-stat-report-inline-blue:hover {
    background-color: var(--accent-blue-light) !important;
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

.highlight-blue-light {
    background-color: #f0f7ff !important;
}

.blue-bg-light {
    background-color: var(--bg-card) !important;
}

.text-blue-dark {
    color: var(--accent-blue) !important;
}
i.text-blue-dark, svg.text-blue-dark {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   PRINT SETTINGS MODAL / POPUP OVERLAY
   ========================================================================== */

.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-modal-overlay.active {
    display: flex;
}

.settings-modal {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal-btn i {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.radio-label input:checked + .custom-radio {
    border-color: var(--accent-blue);
}

.radio-label input:checked + .custom-radio::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Copies Counter */
.copies-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    overflow: hidden;
}

.counter-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
}

.counter-btn:hover {
    background-color: var(--border-color);
}

.copies-counter input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
}

/* Select w-full */
.w-full {
    width: 100%;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.estimated-cost-container {
    display: flex;
    flex-direction: column;
}

.cost-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.cost-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ==========================================================================
   DYNAMIC STYLES (EDIT/DELETE QUEUE & APPS CARD STATE)
   ========================================================================== */

.btn-danger {
    background-color: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    background-color: var(--accent-red);
    color: white;
}

.text-red {
    color: var(--accent-red) !important;
}

.stat-label-group {
    display: flex;
    flex-direction: column;
}

.stat-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.panel-card.collapsed .apps-list,
.panel-card.collapsed .card-subtitle {
    display: none;
}

.panel-card.collapsed {
    padding-bottom: 12px;
    padding-top: 12px;
}

/* ==========================================================================
   DISCOUNT WIDGET & FILE DELETE STYLES
   ========================================================================== */
.discount-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    height: 34px;
}

.discount-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.discount-control {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 24px;
}

.discount-control button {
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.discount-control button:hover {
    background-color: #e5e7eb;
}

.discount-control input {
    border: none;
    outline: none;
    width: 44px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-family);
    -moz-appearance: textfield;
}

.discount-control input::-webkit-outer-spin-button,
.discount-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-table-delete {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-table-delete:hover {
    background-color: var(--accent-red-light);
    color: var(--accent-red-hover);
}

.text-green {
    color: var(--accent-green) !important;
}

/* Disabled state for radio inputs */
.radio-label.disabled-label {
    opacity: 0.4;
    cursor: not-allowed;
}
.radio-label.disabled-label input {
    cursor: not-allowed;
}

/* Hide number input spinners for modalDiscountInput */
#modalDiscountInput::-webkit-outer-spin-button,
#modalDiscountInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#modalDiscountInput {
    -moz-appearance: textfield;
}

/* Custom Select Dropdown & Add/Delete options */
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 220px;
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 6px;
    display: none;
}

.custom-select-dropdown.active {
    display: block;
}

.custom-select-options {
    max-height: 180px;
    overflow-y: auto;
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-family);
    font-weight: 600;
}

.custom-select-option:hover {
    background-color: var(--bg-secondary);
}

.btn-delete-printer {
    background: transparent;
    border: none;
    color: var(--accent-red);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-delete-printer:hover {
    background-color: var(--accent-red-light);
}

.btn-delete-printer svg {
    width: 14px;
    height: 14px;
}

.custom-select-add-printer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-top: 1.5px solid var(--border-color);
    margin-top: 6px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    user-select: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.custom-select-add-printer:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-blue-hover);
}

/* Custom Installed Apps Sidebar Styles */
.app-icon.custom-app {
    background-color: #7c3aed; /* Purple theme */
    color: white;
}

.app-item {
    position: relative;
}

.btn-delete-app {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-item:hover .btn-delete-app {
    opacity: 1;
}

.btn-delete-app:hover {
    background-color: var(--accent-red-light);
}

.btn-delete-app svg {
    width: 14px;
    height: 14px;
}

/* Custom Scrollbars for queue-list and files-table-wrapper */
.queue-list::-webkit-scrollbar,
.files-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.queue-list::-webkit-scrollbar-track,
.files-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.queue-list::-webkit-scrollbar-thumb,
.files-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.queue-list::-webkit-scrollbar-thumb:hover,
.files-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Files Table Wrapper (Scrollable Accordion Files List) */
.files-table-wrapper {
    border-bottom: 1px solid var(--border-color);
}

/* Queue stats indicator */
.queue-stats-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.queue-stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-family: var(--font-family);
}

.queue-stat-badge .badge-value {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    min-width: 36px;
    text-align: center;
    font-family: var(--font-family);
    display: inline-block;
}

#statPendingCount {
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* ==========================================================================
   DYNAMIC MODULES IMPORT
   ========================================================================== */

/* Font Size Scaling Rules */
body.font-small {
    zoom: 0.9;
}
body.font-small .app-container {
    height: 111.11vh;
}
body.font-medium {
    zoom: 1.0;
}
body.font-medium .app-container {
    height: 100vh;
}
body.font-large {
    zoom: 1.12;
}
body.font-large .app-container {
    height: 89.28vh;
}

/* ==========================================================================
   FILE PREVIEW MODAL STYLES
   ========================================================================== */

.file-preview-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.25s ease-out;
}

.file-preview-container {
    width: 90%;
    max-width: 950px;
    height: 85%;
    max-height: 800px;
    background-color: var(--bg-card, #ffffff);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-premium, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background-color: var(--bg-card, #ffffff);
}

.file-preview-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.file-preview-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-icon.pdf {
    background-color: #fef2f2;
    color: #ef4444;
}

.file-preview-icon.image {
    background-color: #f0fdf4;
    color: var(--accent-green, #10b981);
}

.file-preview-details {
    display: flex;
    flex-direction: column;
}

.file-preview-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0;
}

.file-preview-meta {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    margin-top: 2px;
}

.file-preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-preview-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.btn-preview-action.edit {
    background-color: var(--bg-primary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #0f172a);
}

.btn-preview-action.edit:hover {
    background-color: var(--bg-secondary, #f1f5f9);
}

.btn-preview-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-preview-close:hover {
    background-color: var(--bg-primary, #f8fafc);
    color: var(--text-primary, #0f172a);
}

.file-preview-body {
    flex-grow: 1;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* Image container styling */
.file-preview-image-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.file-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    background-color: white;
}

/* Clickable document icon cursor rules */
.file-icon-wrapper.pdf, .file-icon-wrapper.image, .file-name {
    cursor: pointer;
}

.file-icon-wrapper.pdf, .file-icon-wrapper.image {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.file-icon-wrapper.pdf:hover, .file-icon-wrapper.image:hover {
    transform: scale(1.08);
    filter: brightness(0.95);
}

.file-name:hover {
    text-decoration: underline;
    color: var(--accent-blue, #1859f5);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}