/* Custom CSS for Shipment Management System */

/* Pakistan-specific styling */
.currency::before {
    content: "PKR ";
    font-weight: bold;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Statistics cards */
.stats-card {
    border-left: 4px solid;
}

.stats-card.bg-primary {
    border-left-color: #0d6efd;
}

.stats-card.bg-success {
    border-left-color: #198754;
}

.stats-card.bg-warning {
    border-left-color: #ffc107;
}

.stats-card.bg-info {
    border-left-color: #0dcaf0;
}

/* Status badges */
.status-draft {
    background-color: #6c757d !important;
}

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

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

.status-cancelled {
    background-color: #dc3545 !important;
}

/* Table styling */
.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Form styling */
.form-label {
    font-weight: 600;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
