/* Doorbell Logistics Custom Styles */
:root {
    --navy-blue: #001f3f;
    --dark-red: #8B0000;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    line-height: 1.6;
}

/* Custom Colors */
.bg-navy {
    background-color: var(--navy-blue) !important;
}

.bg-dark-red {
    background-color: var(--dark-red) !important;
}

.text-navy {
    color: var(--navy-blue) !important;
}

.text-dark-red {
    color: var(--dark-red) !important;
}

.btn-navy {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    color: white;
}

.btn-navy:hover {
    background-color: #003366;
    border-color: #003366;
    color: white;
}

.btn-dark-red {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    color: white;
}

.btn-dark-red:hover {
    background-color: #a00000;
    border-color: #a00000;
    color: white;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--navy-blue);
    color: white;
    border-bottom: none;
    font-weight: 600;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--navy-blue), #003366);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stats-card .stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 31, 63, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--navy-blue);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: rgba(0, 31, 63, 0.05);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #cce7ff;
    color: var(--navy-blue);
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-transit {
    background-color: #cce7ff;
    color: #004085;
}

.status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-red));
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Image Thumbnails */
.parcel-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .stats-card {
        text-align: center;
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003366;
}
/* Enhanced shipment status badges */
.status-badge {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50rem; /* pill shape */
    white-space: nowrap; /* prevent text breaking */
    text-align: center;
    min-width: 90px; /* ensures equal width for all */
}

/* Status colors */
.status-pending {
    background-color: #ffc107;
    color: #212529;
}
.status-in-transit {
    background-color: #0dcaf0;
    color: #fff;
}
.status-delivered {
    background-color: #198754;
    color: #fff;
}
.status-cancelled {
    background-color: #dc3545;
    color: #fff;
}
