/* Simplify Global Shipping - Custom Styles */

:root {
    --primary-red: #dc3545;
    --dark-red: #b02a37;
    --light-red: #f8d7da;
    --white: #ffffff;
    --black: #000000;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background-color: var(--dark); /* Fallback */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Tracking Section */
.tracking-section {
    background: var(--light-gray);
    padding: 3rem 0;
}

.tracking-box {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tracking-input {
    border: 2px solid var(--primary-red);
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.tracking-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    border-color: var(--primary-red);
}

.tracking-btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.tracking-btn:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

/* Tracking Results */
.tracking-result {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-red);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-red);
}

.timeline-item.completed::before {
    background: var(--primary-red);
}

.timeline-item.current::before {
    background: var(--white);
    border-color: var(--primary-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--primary-red); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.3); }
}

/* Service Cards */
.service-card {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.service-card .card-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.service-card .card-text {
    opacity: 0.9;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* New Section Styles */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.process-step {
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-top-color: var(--primary-red);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Admin Styles */
.admin-sidebar {
    min-height: 100vh;
    background: var(--dark);
    color: var(--white);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-red);
    color: var(--white) !important;
}

.admin-sidebar .nav-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Shipment Table */
.table-responsive {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-red);
}

.table td {
    vertical-align: middle;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

.btn-outline-primary {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline-primary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Receipt Styles */
.receipt-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border: 1px solid #dee2e6;
}

.receipt-header {
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.receipt-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-red) 100%);
}

.login-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.login-header {
    background: var(--primary-red);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Loading Spinner */
.spinner-container {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner-container.active {
    display: block;
}

/* Image Gallery */
.img-gallery {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.img-gallery img {
    transition: transform 0.3s;
}

.img-gallery:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-red);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/page-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .tracking-input {
        border-radius: 50px;
        margin-bottom: 1rem;
    }
    
    .tracking-btn {
        border-radius: 50px;
        width: 100%;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .receipt-container {
        border: none;
        box-shadow: none;
    }
    
    body {
        background: white;
    }
}
