/* General Styles */
:root {
    /* Professional palette */
    --primary-color: #AD8202;
    --primary-dark: #7A5A00;
    --primary-darker: #5A3C00;
    --primary-light: #D8AB3F;
    --secondary-color: #495057;
    --success-color: #2BA36A;
    --info-color: #17A2B8;
    --warning-color: #F59F00;
    --danger-color: #E03131;

    /* Typography scale */
    --font-size-base: 15px;
    --font-size-sm: 13px;
    --font-size-lg: 18px;
    --heading-1: 2.2rem;
    --heading-2: 1.8rem;
    --heading-3: 1.4rem;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
}

/* Bootstrap theme overrides */
.bg-primary,
.card-header.bg-primary,
.badge.bg-primary,
.text-bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.navbar.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: #212529;
    background-color: #f6f7fb;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Dashboard fixed-height wrapper (removed) */

/* Tracking Hero Section */
.tracking-hero {
    /* Softer, professional background */
    background: linear-gradient(135deg, #e9f2ff 0%, #f7f9ff 100%);
    padding: 0.75rem 0;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.tracking-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(21, 25, 50, 0.08);
    border: 1px solid #e9ecef;
}

.tracking-card .card-body { padding: 1.25rem !important; }

/* Smaller heading inside tracking card */
.tracking-card .display-6 { font-size: 1.6rem; }
.tracking-card p.text-muted { font-size: 0.9rem; }

.tracking-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-box { padding: var(--space-sm); }

.feature-icon { font-size: 1.2rem; margin-bottom: var(--space-xs); }

/* Login Hero Section */
.login-hero { background: #f6f7fb; padding: .5rem 0; min-height: 100%; display: flex; align-items: center; }

.login-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(21,25,50,0.08); border: 1px solid #e9ecef; }

.login-card .card-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%) !important;
    border-radius: 16px 16px 0 0;
}

.login-card .card-body {
    padding: 1.5rem !important;
}

/* Tracking Result Styles */
.tracking-result .info-card { background-color: #f8f9fa; padding: var(--space-lg); border-radius: 10px; margin-bottom: var(--space-md); }

.status-badge {
    margin: 8px 0;
}

/* Tracking result compact styles */
.tracking-result h2 { font-size: 1.4rem; margin-bottom: .5rem !important; }
.tracking-result .status-badge .badge { font-size: .85rem; padding: .25rem .5rem; }
.tracking-result .card { margin-bottom: .75rem; }
.tracking-result .card .card-body { padding: .75rem; }
.tracking-result .display-4 { font-size: 2rem; }

/* Dashboard Stats Cards */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: -30px;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Table Styles */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(173, 130, 2, 0.08);
}

/* Button Styles */
.btn { border-radius: 8px; padding: 8px 18px; font-weight: 600; letter-spacing: .2px; transition: all .2s ease; }

.btn-lg { padding: 10px 22px; font-size: 0.95rem; }

/* Smaller buttons and fonts */
.btn-sm { padding: 4px 10px; font-size: var(--font-size-sm); border-radius: 6px; }

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); border: none; }

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
}

/* Card Styles */
.card { border-radius: 12px; margin-bottom: var(--space-xl); }

.card-header {
    border-radius: 12px 12px 0 0;
}

/* Form Styles */
.form-control, .form-select { border-radius: 8px; border: 1px solid #dee2e6; padding: 8px 12px; font-size: var(--font-size-base); min-height: 36px; }

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(173, 130, 2, 0.2);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: white;
    border: 1px solid #dee2e6;
}

.input-group-lg .input-group-text {
    border-radius: 10px 0 0 10px;
}

.input-group-lg .form-control {
    border: 1px solid #dee2e6;
}

.input-group-lg .btn {
    border-radius: 0 10px 10px 0;
    padding: 0.5rem 1.5rem;
}

/* Compact search field on the landing page */
.search-group .input-group-text { padding: 6px 10px; }
.search-group .form-control { padding: 6px 10px; min-height: 34px; }
.search-group .btn { padding: 6px 12px; }

/* Compact filter row in shipments index */
.card .card-body form .row.g-3 .form-control,
.card .card-body form .row.g-3 .form-select { min-height: 34px; padding: 6px 10px; font-size: 0.9rem; }
.card .card-body form .row.g-3 .btn { padding: 6px 10px; }

/* Compact table rows */
.table>tbody>tr>td, .table>thead>tr>th { padding-top: .45rem; padding-bottom: .45rem; }

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand { font-weight: 700; font-size: 1.25rem; letter-spacing: .2px; }

.nav-link { font-weight: 600; transition: color .3s ease; }

.nav-link:hover {
    color: rgba(255,255,255,0.8);
}

/* Footer Styles - Only for admin layout */
footer:not(.footer-dark) {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    height: 20px;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Badge Styles */
.badge {
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tracking-card .card-body {
        padding: 1.25rem !important;
    }
    
    .tracking-icon {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    .login-card .card-body {
        padding: 1.25rem !important;
    }
}

@media (max-width: 992px) {
    .tracking-hero, .login-hero {
        padding: 0.75rem 0;
    }
    
    .tracking-card .card-body, .login-card .card-body {
        padding: 1rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .feature-box h6 {
        font-size: 0.9rem;
    }
    
    .feature-box p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .tracking-hero, .login-hero {
        padding: 0.5rem 0;
    }

    .tracking-icon {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .display-6 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .tracking-card .card-body p.text-muted {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .login-card .card-body, .tracking-card .card-body {
        padding: 0.85rem !important;
    }
    
    .login-card .card-header {
        padding: 0.75rem !important;
    }
    
    .login-card h3 {
        font-size: 1.25rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .btn-group {
        flex-direction: column;
    }
    
    .input-group-lg .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .input-group-lg .form-control {
        font-size: 0.9rem;
    }
    
    .feature-box {
        padding: 0.25rem;
    }
    
    .feature-icon {
        font-size: 1rem;
    }
    
    .feature-box h6 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-box p {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .tracking-hero, .login-hero {
        padding: 0.25rem 0;
    }
    
    .tracking-card .card-body, .login-card .card-body {
        padding: 0.75rem !important;
    }
    
    .tracking-icon {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.1rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .login-card .card-header {
        padding: 0.5rem !important;
    }
    
    .login-card h3 {
        font-size: 1.1rem;
        margin-top: 0.5rem !important;
    }
    
    .input-group-lg {
        flex-wrap: nowrap;
    }
    
    .input-group-lg .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .feature-box {
        margin-bottom: 0.25rem;
    }
    
    footer {
        font-size: 9px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


