/**
 * Shamirik Air Cargo - Customer CSS
 * Custom styles for customer web app
 */

/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Overrides - Bootstrap Primary */
:root {
    --bs-primary: #0E2350;
    --bs-primary-rgb: 14, 35, 80;
    --bs-secondary: #F37622;
    --bs-secondary-rgb: 243, 118, 34;
}

.btn-primary {
    background-color: #0E2350;
    border-color: #0E2350;
}

.btn-primary:hover {
    background-color: #0a1a3a;
    border-color: #0a1a3a;
}

.btn-secondary {
    background-color: #F37622;
    border-color: #F37622;
    color: white;
}

.btn-secondary:hover {
    background-color: #d8651e;
    border-color: #d8651e;
    color: white;
}

.btn-outline-primary {
    color: #0E2350;
    border-color: #0E2350;
}

.btn-outline-primary:hover {
    background-color: #0E2350;
    border-color: #0E2350;
    color: white;
}

.btn-outline-secondary {
    color: #F37622;
    border-color: #F37622;
}

.btn-outline-secondary:hover {
    background-color: #F37622;
    border-color: #F37622;
    color: white;
}

/* Hero Section - Modern Design */
.hero-section {
    background-image: linear-gradient(rgba(14, 35, 80, 0.65), rgba(14, 35, 80, 0.55)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 35, 80, 0.7) 0%, rgba(243, 118, 34, 0.3) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-section .btn {
    text-shadow: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

/* Cards - Modern Design */
.card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: linear-gradient(135deg, #0E2350 0%, #1a3a6b 100%);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 2rem;
}

/* Timeline Styles - Modern Design */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0E2350 0%, #F37622 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #0E2350 0%, #F37622 100%);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 35, 80, 0.1), 0 4px 12px rgba(14, 35, 80, 0.2);
    z-index: 1;
}

.timeline-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0E2350;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.timeline-content h6 {
    margin-bottom: 0.5rem;
    color: #0E2350;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Step Numbers */
.step-number {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Badge - Modern Design */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Form Styles - Modern Design */
.form-floating > .form-control {
    border-radius: 12px;
    height: calc(3.5rem + 2px);
    padding: 1.5rem 0.75rem 0.5rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #0E2350;
    box-shadow: 0 0 0 4px rgba(14, 35, 80, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 1;
}

.input-group-lg .form-control {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Button Styles - Modern Design */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
    text-transform: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 35, 80, 0.25);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-light {
    background-color: #ffffff;
    color: #0E2350;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

/* Navigation - Modern Design */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(14, 35, 80, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1030;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.navbar-nav.me-auto .nav-item {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.navbar-nav.me-auto .nav-item:first-child {
    margin-left: 0;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem !important;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #F37622;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-separator {
    color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0;
    margin: 0 0.25rem;
    pointer-events: none;
    user-select: none;
    font-weight: 300;
}

/* Footer - Modern Design */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #F37622;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Alert Styles - Modern Design */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

/* Table Styles - Modern Design */
.table {
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: #2d3748;
    padding: 1.25rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1.25rem 1rem;
    border-top: 1px solid #e2e8f0;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f7fafc;
    transform: scale(1.01);
}

/* Mobile Bottom Navigation - Modern Design */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    padding: 0.5rem 1rem;
    min-width: 70px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item:hover {
    color: #0E2350;
    text-decoration: none;
}

.mobile-nav-item.active {
    color: #0E2350;
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #0E2350, #F37622);
    border-radius: 0 0 10px 10px;
}

.mobile-nav-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
    background: rgba(14, 35, 80, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-icon i {
    font-size: 1.25rem;
}

.mobile-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

/* Add padding to body when mobile nav is visible */
body.has-mobile-nav {
    padding-bottom: 70px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Show mobile bottom nav on small devices */
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Hide regular navbar collapse on mobile */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Keep navbar visible but simplified */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        max-height: 35px;
    }
    
    /* Add body padding for mobile nav */
    body {
        padding-bottom: 70px;
    }
    
    .hero-section {
        min-height: 400px;
        background-attachment: scroll;
        padding: 2.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: -23px;
        width: 14px;
        height: 14px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

/* PWA Styles */
.pwa-install {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.pwa-install .btn {
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .timeline-content {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .table {
        color: #e2e8f0;
    }
    
    .table thead th {
        background: #4a5568;
        color: #e2e8f0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #0E2350 0%, #F37622 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.border-0 {
    border: none !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

/* Custom Scrollbar - Modern Design */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0E2350 0%, #F37622 100%);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0a1a3a 0%, #d8651e 100%);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    /* color: #1a202c; */
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
}

/* Modern Input Group */
.input-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    border-radius: 0 14px 14px 0;
}

/* Dropdown Menu - Modern */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1050 !important;
    position: absolute;
}

.navbar .dropdown-menu {
    z-index: 1050 !important;
}

.dropdown {
    position: relative;
    z-index: 1030;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: #0E2350;
}

.dropdown-item.active {
    background-color: #0E2350;
    color: #ffffff;
}

/* Breadcrumb - Modern */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0E2350;
}

.breadcrumb-item.active {
    color: #2d3748;
    font-weight: 600;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23e9ecef" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section img {
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}
