/* ==========================================================================
   HJ MoneyGram - Modern Clean Design System
   Color Scheme: White background, subtle shadows, black text
   ========================================================================== */

:root {
    /* Primary Colors - Clean & Professional */
    --primary-50: #f0f4f8;
    --primary-100: #d9e6f2;
    --primary-200: #b3cce5;
    --primary-300: #8cb3d9;
    --primary-400: #6699cc;
    --primary-500: #4a7ba7;
    --primary-600: #3d6485;
    --primary-700: #2f4d64;
    --primary-800: #1f3342;
    --primary-900: #0f1921;
    --primary-950: #0c1450;

    /* Neutral Colors - Clean whites and grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Shadows - Subtle and clean */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ==========================================================================
   Card Components - Clean white cards with shadows
   ========================================================================== */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* ==========================================================================
   Statistics Cards - Clean gradient-free design
   ========================================================================== */

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-950);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-card.blue::before,
.stat-card.green::before,
.stat-card.yellow::before,
.stat-card.purple::before,
.stat-card.red::before {
    background: var(--primary-950);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
}

.stat-card.blue .stat-icon { background: #dbeafe; color: #3b82f6; }
.stat-card.green .stat-icon { background: #d1fae5; color: #10b981; }
.stat-card.yellow .stat-icon { background: #fef3c7; color: #f59e0b; }
.stat-card.purple .stat-icon { background: #ede9fe; color: #8b5cf6; }
.stat-card.red .stat-icon { background: var(--danger-light); color: var(--danger); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.status-badge-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
}

.status-badge-success {
    background: var(--success-light);
    color: #047857;
}

.status-badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

.status-badge-info {
    background: var(--info-light);
    color: #1d4ed8;
}

.status-badge-primary {
    background: var(--primary-100);
    color: var(--primary-950);
}

.status-badge-danger {
    background: var(--danger-light);
    color: #b91c1c;
}

.upload-progress-native {
    display: block;
    width: 100%;
    height: 0.75rem;
    overflow: hidden;
    border: 0;
    border-radius: 9999px;
    background: var(--gray-200);
}

.upload-progress-native::-webkit-progress-bar {
    border-radius: 9999px;
    background: var(--gray-200);
}

.upload-progress-native::-webkit-progress-value {
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--info), #2563eb);
}

.upload-progress-native::-moz-progress-bar {
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--info), #2563eb);
}

.animation-delay-150 {
    animation-delay: 150ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

/* ==========================================================================
   Dashboard Statistics Cards - Clean Modern Design
   ========================================================================== */

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-950);
}

.stats-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

/* ==========================================================================
   Buttons - Clean and modern
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-info {
    background-color: #3b82f6;
    color: white;
}

.btn-info:hover {
    background-color: #2563eb;
}

.btn-white {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-white:hover {
    background-color: #f9fafb;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   Forms - Clean input styling
   ========================================================================== */

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: white;
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--gray-900);
    background-color: white;
    border-color: var(--primary-500);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.1);
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ==========================================================================
   Tables - Clean table design
   ========================================================================== */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   Badges - Clean badge styling
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    white-space: nowrap;
}

.bg-success {
    background-color: var(--success-light);
    color: var(--success);
}

.bg-warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.bg-danger {
    background-color: var(--danger-light);
    color: var(--danger);
}

.bg-info {
    background-color: var(--info-light);
    color: var(--info);
}

/* ==========================================================================
   Navigation Links - Clean nav styling
   ========================================================================== */

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active,
.nav-link:active {
    background-color: var(--primary-50);
    color: var(--primary-950);
    font-weight: 600;
}

.nav-link i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    opacity: 0.8;
}

/* ==========================================================================
   Dropdown Menu - Clean dropdown styling
   ========================================================================== */

.dropdown-menu {
    position: absolute;
    right: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--gray-700);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    color: var(--gray-900);
    background-color: var(--gray-100);
}

.dropdown-item.text-warning:hover {
    color: var(--warning);
    background-color: var(--warning-light);
}

.dropdown-item.text-danger:hover {
    color: var(--danger);
    background-color: var(--danger-light);
}

/* ==========================================================================
   Page Header - Clean page header styling
   ========================================================================== */

.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

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

.animate-fadeInRight {
    animation: fadeInRight 0.3s ease-out;
}

/* Upload Progress Bar Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Progress Bar Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.progress-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.token-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    background: white;
    transition: all 0.2s ease;
}

.token-card.active {
    border-color: var(--success);
    background: var(--success-light);
}

.token-card.inactive {
    background: var(--gray-50);
    opacity: 0.8;
}

.token-card:hover {
    box-shadow: var(--shadow-md);
}

/* Gradient Animation for Progress Bar */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.progress-gradient {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8, #2563eb, #3b82f6);
    background-size: 200% 100%;
    animation: gradient-shift 2s ease infinite;
}

/* Scale Animation for Success/Error States */
@keyframes scale-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 767px) {
    .card-body {
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1rem;
    }
}

/* ==========================================================================
   Avatar & Profile Components
   ========================================================================== */

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-md {
    max-width: 28rem;
}

.object-cover {
    object-fit: cover;
}

/* ==========================================================================
   Additional Layout Utilities
   ========================================================================== */

.left-0 { left: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }

.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }

.pl-8 { padding-left: 2rem; }
.pl-10 { padding-left: 2.5rem; }

.last\\:border-0:last-child {
    border-width: 0;
}

/* ==========================================================================
   Border Width Utilities
   ========================================================================== */

.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

/* ==========================================================================
   Opacity Utilities
   ========================================================================== */

.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

/* ==========================================================================
   Specific Component Overrides for Clean Design
   ========================================================================== */

/* MudBlazor Dialog Override */
.mud-dialog {
    border-radius: 12px !important;
    box-shadow: var(--shadow-2xl) !important;
}

.mud-dialog-title {
    background: white !important;
    color: var(--gray-900) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--gray-200) !important;
}

/* MudBlazor TextField Override for cleaner look */
.mud-input-root {
    border-radius: 8px !important;
}

.mud-input-outlined .mud-input-slot {
    border-color: var(--gray-300) !important;
}

.mud-input-outlined:hover .mud-input-slot {
    border-color: var(--primary-500) !important;
}

/* ==========================================================================
   MoneyGram Receipt
   ========================================================================== */

.mg-receipt-area {
    font-family: 'Courier New', Courier, monospace;
    background: white;
    max-height: 58vh;
    overflow-y: auto;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
}

.receipt-doc {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.5rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #000;
    background: white;
}

.receipt-header-center {
    text-align: center;
    margin-bottom: 1rem;
}

.receipt-title {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.receipt-subtitle {
    font-size: 0.85rem;
}

.receipt-address-block {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.receipt-datetime {
    text-align: center;
    margin: 0.75rem 0;
    font-size: 0.8rem;
}

.receipt-hr {
    border: none;
    border-top: 1px solid #000;
    margin: 0.65rem 0;
}

.receipt-section-title {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.receipt-field-label {
    font-weight: bold;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.receipt-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
}

.receipt-info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.receipt-info-label {
    font-weight: bold;
}

.receipt-hold-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    margin: 0.5rem 0;
}

.receipt-note {
    font-size: 0.7rem;
    font-style: italic;
    color: #555;
    margin-bottom: 0.2rem;
}

.receipt-amount-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.receipt-amount-label {
    font-weight: bold;
}

.receipt-amount-total {
    font-weight: bold;
    border-top: 1px solid #000;
    padding-top: 0.25rem;
    margin-top: 0.1rem;
}

.receipt-disclosure-box {
    border: 1px solid #000;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.receipt-disclosure-title {
    text-align: center;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.receipt-disclosure-item {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.72rem;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }

    /* Receipt: hide everything and show only the receipt */
    body * {
        visibility: hidden !important;
    }

    .mg-receipt-area,
    .mg-receipt-area * {
        visibility: visible !important;
    }

    .mg-receipt-area {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
        border-radius: 0 !important;
        background: white !important;
        z-index: 99999 !important;
    }

    .receipt-doc {
        max-width: 640px !important;
        margin: 0 auto !important;
        border: none !important;
        box-shadow: none !important;
        page-break-inside: auto !important;
    }
}

/* ==========================================================================
   Dark Mode Support (Future Enhancement)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Will be implemented in future version */
}

/* ==========================================================================
   Receipt Print Toolbar
   ========================================================================== */

.receipt-print-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f0f4f8;
    border: 1px solid #d9e6f2;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    max-width: 400px;
}

.btn-print-browser,
.btn-print-silent {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-print-browser {
    background: #4a7ba7;
    color: #fff;
}

.btn-print-browser:hover {
    background: #3d6485;
}

.btn-print-silent {
    background: #10b981;
    color: #fff;
}

.btn-print-silent:hover:not(:disabled) {
    background: #059669;
}

.btn-print-silent:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

.receipt-silent-print {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.receipt-printer-select,
.receipt-copies-select {
    padding: 0.35rem 0.5rem;
    border: 1px solid #d9e6f2;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff;
    max-width: 200px;
}

.receipt-print-status {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.print-status-ok    { background: #d1fae5; color: #065f46; }
.print-status-error { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   Document Upload
   ========================================================================== */

.document-upload-container {
    padding: 0;
}

.document-type-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.document-type-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.document-type-card.active {
    border-color: var(--primary-950);
    background-color: var(--primary-50);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 3.75rem 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    background-color: var(--gray-50);
}

.upload-zone.dragging {
    border-color: var(--primary-500);
    background-color: var(--primary-50);
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.file-preview-card,
.existing-document-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.btn-remove-file {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 9999px;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-remove-file:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.file-preview-image img {
    width: 100%;
    height: 9.5rem;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.file-preview-placeholder {
    width: 100%;
    height: 9.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.file-preview-info {
    text-align: left;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.upload-progress {
    width: 100%;
    height: 0.25rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.upload-success,
.upload-pending,
.upload-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.375rem;
    border-radius: 6px;
}

.upload-success { background: var(--success-light); }
.upload-pending { background: var(--info-light); }
.upload-error { background: var(--danger-light); }

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-sm.btn-primary { background: var(--primary-950); color: white; }
.btn-icon-sm.btn-success { background: var(--success); color: white; }
.btn-icon-sm.btn-danger { background: var(--danger); color: white; }

/* ==========================================================================
   Print Media — hide everything except the receipt
   ========================================================================== */

@media print {
    .no-print,
    .receipt-print-toolbar {
        display: none !important;
    }
}
