/* Custom styles for Export Monitor */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar styles */
#sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    z-index: 100;
}

#sidebar .nav-link {
    color: #ced4da;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

#sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

#sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Card styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

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

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Table styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Button styles */
.btn {
    font-weight: 500;
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

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

/* Dashboard styles */
.dashboard-card {
    height: 100%;
    transition: all 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        min-height: auto;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Status colors */
.status-1 {
    color: #0d6efd; /* Dispatched */
}

.status-2 {
    color: #6f42c1; /* Picked Up */
}

.status-3 {
    color: #fd7e14; /* Export Cleared */
}

.status-4 {
    color: #ffc107; /* Arrived at Destination */
}

.status-5 {
    color: #20c997; /* Waiting for Delivery */
}

.status-99 {
    color: #198754; /* Delivered */
}

/* Modal styles */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Fix z-index for nested modals */
#emailModal {
    z-index: 1065;
}

#viewEmailModal {
    z-index: 1070;
}

/* Chart styles */
canvas {
    max-width: 100%;
}

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

.fa-sync-alt.spinning {
    animation: spin 1s linear infinite;
}