/* Print Order Management System CSS */

/* Global Styles */
body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #e0e0e0;
    color: #333;
    padding-bottom: 2rem;
}

.container {
    max-width: 1200px;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.navbar-brand {
    font-weight: 700;
    color: #2c3e50;
}

/* Card Styles */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Button Styles */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-warning {
    background-color: #f39c12;
    border-color: #f39c12;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.bg-purple {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

.bg-teal {
    background-color: #009688;
    border-color: #009688;
}

.bg-indigo {
    background-color: #3F51B5;
    border-color: #3F51B5;
}

.bg-cyan {
    background-color: #00BCD4;
    border-color: #00BCD4;
}

.bg-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-purple {
    color: #8e44ad;
    border-color: #8e44ad;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #8e44ad;
    border-color: #8e44ad;
}

/* Table Styles */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Form Styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Saved Prices Selector Styles */
.card .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.card .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 1rem;
}

.card .form-select {
    width: 100%;
    height: calc(2.5rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Ensure proper spacing between dropdowns */
.card .mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Ensure proper alignment of labels */
.card .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

/* Status Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
}

.badge-new {
    background-color: #3498db;
    color: #fff;
}

.badge-in-progress {
    background-color: #f39c12;
    color: #fff;
}

.badge-shipped {
    background-color: #9b59b6;
    color: #fff;
}

.badge-completed {
    background-color: #2ecc71;
    color: #fff;
}

.badge-cancelled {
    background-color: #e74c3c;
    color: #fff;
}

/* Dashboard Stats */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stats-card .stats-title {
    font-size: 1rem;
    font-weight: 500;
}

.text-white .stats-title {
    color: rgba(255, 255, 255, 0.9);
}

/* File Management */
.file-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.file-meta {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Tablet-friendly Adjustments */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        border-radius: 6px;
    }
    
    .table-responsive {
        border-radius: 6px;
        overflow-x: auto;
    }
    
    .btn {
        padding: 0.6rem 1rem;
    }
    
    /* Increase touch targets for tablet users */
    .form-control {
        height: calc(2.5rem + 2px);
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Adjust spacing for tablet views */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Activity Feed */
.activity-feed {
    padding: 0;
    list-style: none;
}

.activity-feed .feed-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1.5rem;
    border-left: 2px solid #e9ecef;
}

.activity-feed .feed-item:last-child {
    border-color: transparent;
}

.activity-feed .feed-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid #fff;
}

.activity-feed .feed-item .date {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.activity-feed .feed-item .text {
    position: relative;
    top: -3px;
}

/* File Preview */
.file-preview-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.file-preview-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
}

/* Order Status Workflow */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.workflow-steps:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.workflow-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.workflow-step .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.workflow-step.active .step-icon {
    background: #3498db;
    color: #fff;
}

.workflow-step.completed .step-icon {
    background: #2ecc71;
    color: #fff;
}

.workflow-step .step-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Behavior for Small Tablets */
@media (max-width: 576px) {
    .workflow-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .workflow-steps:before {
        display: none;
    }
    
    .workflow-step {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .workflow-step .step-icon {
        margin: 0 1rem 0 0;
    }
}

/* Barcode Scanner Styles */
#scanner-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

#scanner-container canvas.drawingBuffer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barcode-scan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.barcode-scan-btn:hover {
    background-color: #2980b9;
}

.barcode-scan-btn i {
    font-size: 1.2rem;
}

#barcodeModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#barcodeModal .modal-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
}

#barcodeModal .modal-body {
    padding-top: 0.5rem;
}
