/* FTM Garments Production Management System - Professional Textile Company Styling */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Login page styles - Professional Textile Company Theme */
.login-body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.login-card .card-body {
    padding: 2rem;
}

.demo-accounts {
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.demo-account {
    padding: 0.25rem 0;
    border-bottom: 1px solid #dee2e6;
}

.demo-account:last-child {
    border-bottom: none;
}

/* Main application styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff !important;
}

/* Global footer */
#ftm-global-footer {
    background: rgba(255,255,255,0.6);
    color: #46505a;
}
[data-theme="dark"] #ftm-global-footer {
    background: rgba(0,0,0,0.35);
    color: #cfd8dc;
}

/* FTM Garments Professional Styling */
.bg-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.25rem;
}

/* Dark theme: Enhanced Professional Styling */
[data-theme="dark"] .login-body { background: linear-gradient(135deg, #0b0c10 0%, #1a1a2e 50%, #16213e 100%); }
[data-theme="dark"] .login-card { background: rgba(20, 20, 20, 0.95); color: #e0e0e0; }
[data-theme="dark"] .navbar-dark.bg-primary { background: linear-gradient(135deg, #0b0c10 0%, #1a1a2e 100%) !important; }
[data-theme="dark"] .card-header { background: linear-gradient(135deg, #0b0c10 0%, #1a1a2e 100%); color: #dde2e7; }
[data-theme="dark"] .card { background: #121417; color: #e6ecf1; border: 1px solid #2b3440; }
[data-theme="dark"] .form-control { background: #161b22; color: #e6ecf1; border-color: #2b3440; }
[data-theme="dark"] .form-control:focus { background: #1c2128; color: #e6ecf1; border-color: #1f4e79; box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.25); }
[data-theme="dark"] .form-control::placeholder { color: #9aa7b2; }
[data-theme="dark"] .form-select { background: #161b22; color: #e6ecf1; border-color: #2b3440; }
[data-theme="dark"] .form-select:focus { background: #1c2128; color: #e6ecf1; border-color: #1f4e79; box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.25); }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #1f4e79 0%, #2c5aa0 100%); border-color: #1f4e79; }
[data-theme="dark"] .btn-primary:hover { background: linear-gradient(135deg, #2c5aa0 0%, #3d6bb3 100%); border-color: #2c5aa0; }
[data-theme="dark"] .btn-outline-light { color: #e6ecf1; border-color: #445267; }
[data-theme="dark"] .btn-outline-light:hover { background: #2b3440; color: #e6ecf1; }
[data-theme="dark"] .alert { background: #161b22; color: #e6ecf1; border-color: #2b3440; }
[data-theme="dark"] .text-muted { color: #9aa7b2 !important; }
[data-theme="dark"] .table { color: #e6ecf1; }
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td { background-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .table-hover tbody tr:hover { background-color: rgba(255, 255, 255, 0.1); }

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Additional professional styling for FTM Garments */

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Excel table styles */
#excel-editor {
    margin-top: 2rem;
}

/* Shipment board container should allow horizontal scroll while making headers readable */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Shipment board specific table styling */
.shipment-board {
    min-width: 2000px; /* Ensure table has enough width for all columns */
    table-layout: fixed; /* Fixed layout for consistent column widths */
}

/* Force horizontal text display for all headers */
.shipment-board th {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Add tooltip for truncated text */
.shipment-board th[title] {
    position: relative;
    cursor: help;
}

/* Ensure all text is horizontal */
.shipment-board th * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    table-layout: auto; /* allow natural width; enable horizontal scroll */
}

.excel-table th,
.excel-table td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.75rem;
    text-align: center;
    min-width: 0; /* allow shrink */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.excel-table.compact th,
.excel-table.compact td {
    padding: 0.4rem;
    font-size: 0.85rem;
}

.excel-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: normal !important; /* wrap headings onto multiple lines */
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Shipment board headings: professional styling with horizontal text display */
.excel-table.shipment-board th {
    font-size: 0.8rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding: 12px 6px;
    min-width: 100px;
    max-width: 180px;
    font-weight: 600;
    background: #1f2937;
    color: white;
    border: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 10;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

/* Reduce icon overlap with wrapped titles */
.excel-table.shipment-board .column-header.editable::after,
.excel-table.shipment-board .column-header.read-only::after {
    top: 6px;
    right: 6px;
}

/* Specific column widths for better organization with horizontal text */
.shipment-board th:nth-child(1), .shipment-board td:nth-child(1) { width: 50px; } /* No */
.shipment-board th:nth-child(2), .shipment-board td:nth-child(2) { width: 90px; } /* Sewing line */
.shipment-board th:nth-child(3), .shipment-board td:nth-child(3) { width: 90px; } /* Indent no */
.shipment-board th:nth-child(4), .shipment-board td:nth-child(4) { width: 100px; } /* Order no */
.shipment-board th:nth-child(5), .shipment-board td:nth-child(5) { width: 180px; } /* Description/colour */
.shipment-board th:nth-child(6), .shipment-board td:nth-child(6) { width: 90px; } /* Order quantity */
.shipment-board th:nth-child(7), .shipment-board td:nth-child(7) { width: 120px; } /* Total number of Boxes */
.shipment-board th:nth-child(8), .shipment-board td:nth-child(8) { width: 100px; } /* Boxes received */
.shipment-board th:nth-child(9), .shipment-board td:nth-child(9) { width: 120px; } /* Boxes received cumm */
.shipment-board th:nth-child(10), .shipment-board td:nth-child(10) { width: 130px; } /* Boxes received balance */
.shipment-board th:nth-child(11), .shipment-board td:nth-child(11) { width: 110px; } /* Sewing line received */
.shipment-board th:nth-child(12), .shipment-board td:nth-child(12) { width: 120px; } /* Sewing line cumm */
.shipment-board th:nth-child(13), .shipment-board td:nth-child(13) { width: 130px; } /* Sewing line balance */
.shipment-board th:nth-child(14), .shipment-board td:nth-child(14) { width: 120px; } /* Boxes inside garment */
.shipment-board th:nth-child(15), .shipment-board td:nth-child(15) { width: 140px; } /* Boxes inside garments cumm */
.shipment-board th:nth-child(16), .shipment-board td:nth-child(16) { width: 150px; } /* Boxes inside garment balance */
.shipment-board th:nth-child(17), .shipment-board td:nth-child(17) { width: 80px; } /* Truck */
.shipment-board th:nth-child(18), .shipment-board td:nth-child(18) { width: 130px; } /* Comments from planning */
.shipment-board th:nth-child(19), .shipment-board td:nth-child(19) { width: 60px; } /* QC */

.excel-table td {
    background: white;
    transition: background-color 0.2s;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Shipment board cell styling */
.shipment-board td {
    padding: 10px 8px;
    font-size: 0.85rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

.excel-table td:hover {
    background: #f8f9fa;
}

.excel-table td.editable {
    cursor: pointer;
    position: relative;
}

.excel-table td.editable:hover {
    background: #e8f4ff; /* light blue hover */
}

.excel-table td.editable:focus {
    background: #fff7e6; /* warm highlight */
    outline: 2px solid #ffb74d; /* amber outline for visibility */
    color: #0d47a1; /* deep blue text for contrast */
}

.excel-table td.read-only {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.excel-table td.read-only:hover {
    background: #f5f5f5;
}

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Permission indicators */
.permission-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Button styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-card .card-body {
        padding: 1.5rem;
    }
    
    .excel-table th,
    .excel-table td {
        padding: 0.5rem;
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Column header indicators */
.column-header {
    position: relative;
}

.column-header.editable::after {
    content: "✏️";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.8rem;
}

.column-header.read-only::after {
    content: "👁️";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.8rem;
}

/* Dark theme support */
[data-theme="dark"] body { background-color: #0b0c10; }
[data-theme="dark"] .card { background-color: #1f2833; color: #e0e0e0; }
[data-theme="dark"] .card-header { background: #0b0c10; color: #dde2e7; }
[data-theme="dark"] .excel-table { background: #161b22; color: #e6ecf1; }
[data-theme="dark"] .excel-table th { background: #0b0c10; color: #dde2e7; border-color: #2b3440; }
[data-theme="dark"] .excel-table td { background: #161b22; color: #e6ecf1; border-color: #2b3440; }
[data-theme="dark"] .excel-table td.read-only { background: #1a2027; color: #cfd8dc; }
[data-theme="dark"] .excel-table td:hover { background: #1d2430; }
[data-theme="dark"] .excel-table td.editable:hover { background: #1d2a3a; }
[data-theme="dark"] .excel-table td.editable:focus { background: #263238; color: #ffffff; outline-color: #ffb74d; }
[data-theme="dark"] .table thead th { background: #0b0c10; color: #dde2e7; border-color: #2b3440; }
[data-theme="dark"] .table tbody td { color: #e6ecf1; border-color: #2b3440; }
[data-theme="dark"] .table { --bs-table-bg: #161b22; --bs-table-striped-bg: #1a2027; --bs-table-striped-color: #e6ecf1; }
[data-theme="dark"] .toast.text-bg-success { background: linear-gradient(135deg, #1e4620, #2e7d32) !important; color: #e8f5e9 !important; }
[data-theme="dark"] .toast.text-bg-danger { background: linear-gradient(135deg, #7f1d1d, #c62828) !important; color: #ffebee !important; }

/* Toast container */
/* Professional Loading Indicators */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="dark"] .loading-content {
    background: #121417;
    color: #e6ecf1;
}

/* Smooth transitions for all interactive elements */
.btn, .form-control, .form-select, .card, .toast {
    transition: all 0.3s ease;
}

/* Enhanced focus states for accessibility */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    border-color: #3498db;
}

[data-theme="dark"] .form-control:focus, 
[data-theme="dark"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.25);
    border-color: #1f4e79;
}

/* Enhanced Professional Toast Notifications */
.toast-container { 
    position: fixed; 
    top: 1rem; 
    right: 1rem; 
    z-index: 1080; 
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #2c3e50;
    font-weight: 500;
}

.toast-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
    font-weight: 600;
}

.toast-body {
    padding: 1rem;
}

.toast.text-bg-success { 
    background: linear-gradient(135deg, #1b5e20, #43a047) !important; 
    color: #e8f5e9 !important; 
}

.toast.text-bg-danger { 
    background: linear-gradient(135deg, #b71c1c, #e53935) !important; 
    color: #ffebee !important; 
}

.toast.text-bg-warning { 
    background: linear-gradient(135deg, #f57c00, #ff9800) !important; 
    color: #fff3e0 !important; 
}

.toast.text-bg-info { 
    background: linear-gradient(135deg, #1976d2, #42a5f5) !important; 
    color: #e3f2fd !important; 
}

/* Laundry board specific styles */
.laundry-board {
    margin: 20px 0;
}

.laundry-section {
    margin-bottom: 30px;
}

/* Enhanced Washing and Laser Update visibility */
.washing-laser-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.washing-laser-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.washing-laser-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.laundry-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.laundry-card .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 20px;
    border: none;
}

.laundry-card .card-body {
    padding: 20px;
}

.laundry-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background-color: var(--bs-body-bg, #ffffff);
}

.laundry-table th,
.laundry-table td {
    border: 1px solid var(--bs-border-color, #ddd);
    padding: 8px;
    text-align: center;
    color: var(--bs-body-color, #212529) !important;
}

.laundry-table th {
    background-color: var(--bs-gray-100, #f8f9fa);
    font-weight: bold;
    color: var(--bs-body-color, #212529) !important;
}

.laundry-table td[contenteditable="true"] {
    background-color: var(--bs-warning-bg-subtle, #fff3cd);
    cursor: pointer;
    color: var(--bs-body-color, #212529) !important;
}

.laundry-table td[contenteditable="true"]:hover {
    background-color: var(--bs-warning-bg-subtle, #ffeaa7);
}

/* Order status colors - Light theme */
.finished-order {
    background-color: #d4edda !important; /* Very light green */
}

.in-progress-order {
    background-color: #f8d7da !important; /* Very light red */
}

.finished-order td {
    background-color: #d4edda !important;
    color: #155724 !important; /* Dark green text */
}

.in-progress-order td {
    background-color: #f8d7da !important;
    color: #721c24 !important; /* Dark red text */
}

/* Dark theme adjustments */
[data-theme="dark"] .laundry-table {
    background-color: var(--bs-dark, #212529);
}

[data-theme="dark"] .laundry-table th {
    background-color: var(--bs-gray-800, #343a40);
    color: var(--bs-light, #f8f9fa) !important;
}

[data-theme="dark"] .laundry-table td {
    color: var(--bs-light, #f8f9fa) !important;
    border-color: var(--bs-gray-700, #495057);
}

[data-theme="dark"] .laundry-table td[contenteditable="true"] {
    background-color: #664d03; /* Darker warning color */
    color: #fff3cd !important;
}

[data-theme="dark"] .laundry-table td[contenteditable="true"]:hover {
    background-color: #997404;
}

[data-theme="dark"] .finished-order {
    background-color: #0f5132 !important; /* Dark green */
}

[data-theme="dark"] .finished-order td {
    background-color: #0f5132 !important;
    color: #d1e7dd !important;
}

[data-theme="dark"] .in-progress-order {
    background-color: #842029 !important; /* Dark red */
}

[data-theme="dark"] .in-progress-order td {
    background-color: #842029 !important;
    color: #f8d7da !important;
}

/* Enhanced table styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bs-body-bg, #ffffff);
}

.table thead th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 8px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: all 0.2s ease;
    background-color: var(--bs-body-bg, #ffffff);
}

.table tbody tr:hover {
    background-color: var(--bs-gray-100, #f8f9fa) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--bs-border-color, #e9ecef);
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--bs-body-color, #212529) !important;
    background-color: transparent;
}

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

/* Dark theme table adjustments */
[data-theme="dark"] .table {
    background-color: var(--bs-dark, #212529);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .table thead th {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: #ffffff !important;
}

[data-theme="dark"] .table tbody tr {
    background-color: var(--bs-dark, #212529);
    color: var(--bs-light, #f8f9fa);
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: var(--bs-gray-800, #343a40) !important;
}

[data-theme="dark"] .table tbody td {
    color: var(--bs-light, #f8f9fa) !important;
    border-bottom-color: var(--bs-gray-700, #495057);
}

/* Shipment board specific enhancements */
.shipment-table {
    font-size: 0.85rem;
    background-color: var(--bs-body-bg, #ffffff);
}

.shipment-table thead th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff !important;
    font-size: 0.8rem;
    padding: 10px 6px;
}

.shipment-table tbody td {
    padding: 8px 6px;
    font-size: 0.85rem;
    color: var(--bs-body-color, #212529) !important;
    background-color: transparent;
}

/* Dark theme shipment board */
[data-theme="dark"] .shipment-table {
    background-color: var(--bs-dark, #212529);
}

[data-theme="dark"] .shipment-table thead th {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: #ffffff !important;
}

[data-theme="dark"] .shipment-table tbody td {
    color: var(--bs-light, #f8f9fa) !important;
    background-color: transparent;
}

/* Moved orders highlighting */
.moved-order {
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3 !important;
}

.moved-from-order {
    background-color: #fff3e0 !important;
    border-left: 4px solid #ff9800 !important;
    opacity: 0.7;
}

/* New row highlighting */
.new-row {
    background-color: #fff9c4 !important;
    animation: fadeIn 0.5s ease-in;
}

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

/* Enhanced card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    padding: 15px 20px;
}

/* Enhanced button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

/* Enhanced form controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* Enhanced alert styling */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #2196f3;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #4caf50;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-left-color: #ff9800;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left-color: #f44336;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* QC cell styling for better visibility */
.qc-passed {
    background-color: #b6f2bf !important;
    color: #0b3d10 !important;
    font-weight: 800 !important;
}

.qc-failed {
    background-color: #ffd1d1 !important;
    color: #7a1111 !important;
    font-weight: 800 !important;
}

/* Dark theme QC cells */
[data-theme="dark"] .qc-passed {
    background-color: #0f5132 !important;
    color: #d1e7dd !important;
    font-weight: 800 !important;
}

[data-theme="dark"] .qc-failed {
    background-color: #842029 !important;
    color: #f8d7da !important;
    font-weight: 800 !important;
}
