:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.btn-login {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #d97706;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Dashboard Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 76px;
    width: 260px;
    height: calc(100vh - 76px);
    background: var(--dark-color);
    color: white;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--accent-color);
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
}

.main-content {
    margin-left: 260px;
    padding: 20px;
    min-height: calc(100vh - 76px);
    background: #f8f9fa;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.stats-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stats-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Table Styles */
.dataTables_wrapper {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

/* Shipments Table - modern look */
.shipments-table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}
.shipments-table thead th {
    background: transparent;
    border-bottom: none;
    color: #374151;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
}
.shipments-table tbody tr {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(2,6,23,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.shipments-table tbody tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(2,6,23,0.08);
}
.shipments-table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}
.shipments-table td:first-child strong {
    display: inline-block;
    background: linear-gradient(90deg,#7c3aed,#06b6d4);
    color: #fff;
    padding: .5rem .75rem;
    border-radius: 999px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(99,102,241,0.14);
    letter-spacing: .6px;
}
.shipments-table .badge {
    padding: .45rem .7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .18s ease;
    color: var(--secondary-color);
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.08);
}
.btn-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3,7,18,0.08);
    background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(124,58,237,0.06));
}

@media (max-width: 768px) {
    .shipments-table thead { display: none; }
    .shipments-table tbody tr { display: block; padding: 0.5rem 0; }
    .shipments-table tbody tr td { display: block; padding: .75rem 1rem; border-bottom: 1px dashed #f1f5f9; }
    .shipments-table td:before { display: block; font-weight: 700; margin-bottom: .25rem; color: #6b7280; font-size: .85rem; }
    .shipments-table td:nth-child(1):before { content: 'Tracking ID'; }
    .shipments-table td:nth-child(2):before { content: 'Origin'; }
    .shipments-table td:nth-child(3):before { content: 'Destination'; }
    .shipments-table td:nth-child(4):before { content: 'Weight'; }
    .shipments-table td:nth-child(5):before { content: 'Status'; }
    .shipments-table td:nth-child(6):before { content: 'Pickup Date'; }
    .shipments-table td:nth-child(7):before { content: 'Actions'; }
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Page spacing & title */
.page-content {
    margin-top: 32px; /* space between header and page content */
    padding-top: 6px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

@media (max-width: 768px) {
    .page-title { font-size: 1.25rem; }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
}