/* Custom styles for RAK Finance Application */

/* Navigation Styles */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
}

.nav-link.active {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
    border-bottom-width: 2px;
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* File upload styles */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: #667eea;
}

.file-upload-area.dragging {
    border-color: #4c51bf;
    background-color: #f7fafc;
}

/* Custom table styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button enhancements */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: transform 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-1px);
}

/* Alert enhancements */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.alert-error {
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #f6e05e;
    color: #d69e2e;
}

/* Form enhancements */
.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Navigation active states */
.nav-link.active {
    background-color: #667eea;
    color: white;
}

/* Dashboard cards */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-entered { background-color: #fed7e2; color: #97266d; }
.status-pending-clearance { background-color: #fef5e7; color: #975a16; }
.status-ready-for-dispatch { background-color: #e6fffa; color: #065f46; }
.status-dispatched { background-color: #dbeafe; color: #1e3a8a; }
.status-pop-sent { background-color: #e0e7ff; color: #3730a3; }
.status-charges-added { background-color: #f3e8ff; color: #6b21a8; }
.status-completed { background-color: #d1fae5; color: #065f46; }

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .table-responsive table {
        font-size: 0.875rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
}
