/* Status badge colors */
.status-pending {
    background-color: #dc3545 !important;
}

.status-printed {
    background-color: #17a2b8 !important;
}

.status-in_transit {
    background-color: #28a745 !important;
}

.status-delivered {
    background-color: #007bff !important;
}

.status-discarded {
    background-color: #6c757d !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Custom card hover effects */
.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .card-header,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* File upload area styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Badge spacing */
.badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Form validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

/* Responsive table improvements */
@media (max-width: 576px) {
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .btn-group-sm > .btn,
    .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.7rem;
    }
}

/* Image preview */
.img-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

/* Status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-indicator.pending {
    background-color: #dc3545;
}

.status-indicator.printed {
    background-color: #17a2b8;
}

.status-indicator.in_transit {
    background-color: #28a745;
}

.status-indicator.delivered {
    background-color: #007bff;
}

.status-indicator.discarded {
    background-color: #6c757d;
}

.status-indicator.flagged {
    background-color: #fd7e14;
}

.status-flagged {
    background-color: #fd7e14 !important;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary-color);
}

/* Mobile Dashboard Layout */
@media (max-width: 767.98px) {
    /* Tech dashboard - single column layout for mobile */
    .tech-dashboard-stats .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Admin dashboard - keep 2x2 grid layout for mobile */
    .admin-dashboard-stats .row > div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Ensure proper spacing on mobile */
    .dashboard-stats .card {
        margin-bottom: 1rem;
    }
    
    /* Adjust card body padding for mobile */
    .dashboard-stats .card-body {
        padding: 1.5rem 1rem;
    }
    
    /* Larger icons for better mobile experience */
    .dashboard-stats .fas {
        font-size: 2.5rem !important;
    }
}
