/* Custom styles for thesimplified tracking system */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    background-color: var(--secondary-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Statistics cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #1e3d72);
    color: white;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Tables */
.table {
    background-color: white;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

/* Forms */
.form-label {
    font-weight: 500;
}

.required-field::after {
    content: " *";
    color: var(--danger-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
}

.login-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Status colors */
.status-new { background-color: #6c757d; }
.status-confirmed { background-color: #007bff; }
.status-in-production { background-color: #ffc107; color: #000; }
.status-quality-check { background-color: #17a2b8; }
.status-packaging { background-color: #fd7e14; }
.status-ready { background-color: #28a745; }
.status-shipped { background-color: #6f42c1; }
.status-completed { background-color: #20c997; }
.status-cancelled { background-color: #dc3545; }

/* Order details */
.order-header {
    background: linear-gradient(135deg, var(--primary-color), #1e3d72);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.order-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-item.active::before {
    background: var(--primary-color);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* File dropzone */
.file-dropzone {
    margin-top: 0.5rem;
    border: 2px dashed #ced4da;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.file-dropzone:hover {
    border-color: var(--primary-color);
}

.file-dropzone.is-dragover {
    border-color: var(--primary-color);
    background: #eef3fb;
}

.file-drop-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.file-drop-list {
    margin-top: 0.5rem;
}

.file-drop-count {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-drop-ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.file-drop-ul li {
    padding: 0.25rem 0;
    border-bottom: 1px dashed #e9ecef;
}

.file-drop-message {
    font-size: 0.9rem;
}

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

/* Thumbnails for uploaded files */
.file-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    position: relative;
    transform-origin: center center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: zoom-in;
}

.file-thumb-sm {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    position: relative;
    transform-origin: center center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: zoom-in;
}

.file-thumb:hover,
.file-thumb-sm:hover {
    transform: scale(2);
    z-index: 1000;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
}
