/* Custom styles for Maris Logistics */

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 6rem 0;
}

/* Cards */
.card {
    background: var(--color-card-bg) !important;
    color: var(--color-card-text) !important;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.card .table,
.card .table-striped,
.card .table thead,
.card .table tbody,
.card .table tr,
.card .table th,
.card .table td {
    background-color: transparent !important;
    color: var(--color-text) !important;
}

body.dark-mode .card .table,
body.dark-mode .card .table-striped,
body.dark-mode .card .table thead,
body.dark-mode .card .table tbody,
body.dark-mode .card .table tr,
body.dark-mode .card .table th,
body.dark-mode .card .table td {
    background-color: transparent !important;
    color: var(--color-text) !important;
}

body.dark-mode .card .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.03) !important;
}

.card .table th,
.card .table td {
    border-color: rgba(0,0,0,0.08) !important;
    color: var(--color-card-text) !important;
}



.card:hover {
    transform: translateY(-5px);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

footer .social-links a {
    transition: opacity 0.3s ease;
}

footer .social-links a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-btn-text) !important;
    transition: background 0.3s, color 0.3s;
}


.btn-primary:hover {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
}


/* Services section */
.services .card {
    border-radius: 10px;
    overflow: hidden;
}

.services .card i {
    transition: transform 0.3s ease;
}

.services .card:hover i {
    transform: scale(1.1);
}

/* Why Choose Us section */
.why-us i {
    color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

/* General Styles */


body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg, #f8f9fa) !important;
    color: var(--color-text, #212529) !important;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--color-bg, #181a1b) !important;
    color: var(--color-text, #e6e6e6) !important;
}


main {
    flex: 1;
}

/* Navbar customization */
.navbar {
    background-color: var(--color-navbar-bg) !important;
    color: var(--color-navbar-text) !important;
    padding: 0.8rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.3s, color 0.3s;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-navbar-text) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.nav-link {
    color: var(--color-navbar-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--navbar-bg);
    color: white;
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Search form styling */
.navbar .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    width: 200px;
    transition: all 0.3s ease;
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.navbar .form-control:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
    box-shadow: none;
    width: 250px;
}

.navbar .btn-outline-light {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Mobile menu button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar .form-control {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .navbar .btn-outline-light {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.05);
        padding-left: 1rem;
    }
    
    .dropdown-item {
        color: rgba(255,255,255,0.9);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }
}

/* Hero section */
.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.1));
    padding: 6rem 0;
}

.hero-section h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-section .lead {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Card hover effects */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--color-card-text) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--color-card-text) !important;
}

/* Tracking section */
.tracking-section {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.tracking-section h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Form styling */
.form-control {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Features section */
.features-section {
    padding: 5rem 0;
}

.features-section h2 {
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.features-section i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.features-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.features-section p {
    color: var(--secondary-color);
}

/* Contact section */
.contact-section {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.contact-section h2 {
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.contact-section .card-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-section .card-text {
    line-height: 1.8;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer customization */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

/* Profile page */
.profile-header {
    background-color: #0d6efd;
    color: white;
    padding: 20px;
    border-radius: 5px 5px 0 0;
}

/* Shipment status badges */
.badge {
    padding: 8px 12px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .card {
        margin-bottom: 2rem;
    }
    
    .contact-section .card {
        margin-bottom: 2rem;
    }
}

/* Form Styling */
.form-control {
    margin-bottom: 1rem;
}

textarea.form-control {
    min-height: 120px;
}

/* Alert Messages */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
    width: 3rem;
    height: 3rem;
}

/* Home stats card theme support */
.stats-card {
    background: var(--color-card-bg, #fff) !important;
    color: var(--color-card-text, #212529) !important;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: background 0.3s, color 0.3s;
}
body.dark-mode .stats-card, html body.dark-mode .stats-card, .home-bg-section .stats-card, .stats-cards-row .stats-card {
    background: #23272b !important;
    background-color: #23272b !important;
    color: #f3f6fa !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 1px solid #23272b !important;
}
body.dark-mode .stats-card h3,
body.dark-mode .stats-card p,
body.dark-mode .stats-card i {
    color: var(--color-card-text, #f3f6fa) !important;
}

/* Dark mode support for stat-item cards (footer stats section) */
body.dark-mode .stat-item {
    background: #23272b !important;
    color: #f3f6fa !important;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 1px solid #23272b !important;
}
body.dark-mode .stat-item h2,
body.dark-mode .stat-item p,
body.dark-mode .stat-item i {
    color: #f3f6fa !important;
}
body.dark-mode .stat-item .text-muted,
body.dark-mode .stat-item p,
body.dark-mode .stat-item p.text-muted {
    color: #f3f6fa !important;
    opacity: 1 !important;
}


/* Statistics section background theme support */
.stats-section-bg {
    background: var(--color-section-bg, #f8f9fa) !important;
    transition: background 0.3s;
}
body.dark-mode .stats-section-bg {
    background: #23272b !important;
}

/* Make .text-muted readable in dark mode */
body.dark-mode .text-muted {
    color: #f3f6fa !important;
}

/* FINAL OVERRIDE: Make stats-section labels visible in dark mode */
body.dark-mode .stats-section-bg .stat-item .text-muted,
body.dark-mode .stats-section-bg .stat-item p.text-muted,
body.dark-mode .stats-section-bg .stat-item p,
body.dark-mode .stats-section-bg .stat-item p[style],
body.dark-mode .stats-section-bg .stat-item .text-muted[style] {
    color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
}