﻿/* === Transport LR Management System - Professional UI (Final Refined Edition) === */

/* --- Navbar --- */
.navbar {
    background: linear-gradient(90deg, #0d6efd, #004aad);
    border-bottom: 3px solid #ffc107;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .navbar-brand i {
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .navbar-brand:hover i {
        transform: rotate(-8deg) scale(1.1);
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    }

.nav-link {
    color: #f8f9fa !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 6px 12px !important;
}

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: #fff !important;
        transform: scale(1.05);
    }

/* --- User Dropdown --- */
.user-dropdown .dropdown-toggle::after {
    display: none;
}

/* --- Page Background --- */
body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #fafdff 0%, #f5faff 100%);
    
    color: #2d2d2d;
    transition: background 0.3s ease-in-out;
    min-height: 100vh;
}


/* ✨ Broader Layout & Responsive Improvements */
.container {
    /*  margin-top: 35px;*/
    max-width: 1700px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-bottom: 4px solid #0d6efd;
    padding: 90px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

    .hero-section .brand-logo {
        width: 230px;
        margin-bottom: 25px;
        transition: transform 0.4s ease, filter 0.4s ease;
    }

        .hero-section .brand-logo:hover {
            transform: scale(1.08);
            filter: drop-shadow(0 0 15px rgba(13, 110, 253, 0.5));
        }

    .hero-section .brand-logonew {
        width: 200px;
        margin-bottom: 25px;
        transition: transform 0.4s ease, filter 0.4s ease;
    }

        .hero-section .brand-logonew:hover {
            transform: scale(1.08);
            filter: drop-shadow(0 0 15px rgba(13, 110, 253, 0.5));
        }

    .hero-section h1 {
        font-size: 2.6rem;
        font-weight: 700;
        color: #004aad;
        letter-spacing: 0.6px;
    }

    .hero-section p.lead {
        font-size: 1.1rem;
        color: #555;
        margin-top: 15px;
        line-height: 1.7;
    }

/* --- Features Section --- */
.features-section {
    background: #fff;
    padding: 80px 0;
}

    .features-section h5 {
        font-weight: 600;
        color: #004aad;
        margin-top: 15px;
    }

    .features-section p {
        font-size: 0.96rem;
        color: #555;
        margin-top: 10px;
    }

    .features-section i {
        font-size: 2.4rem;
        color: #0d6efd;
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .features-section i:hover {
            transform: scale(1.2);
            color: #ffc107;
        }

/* --- About Section --- */
.about-section {
    background: linear-gradient(90deg, #0d6efd, #004aad);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    color: #fff;
    padding: 80px 25px;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

    .about-section h4 {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .about-section p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-top: 15px;
        color: #f8f9fa;
    }

    .about-section strong {
        color: #ffc107;
    }

/* --- Footer --- */
footer {
    background: #0a0a0a;
    color: #aaa;
    text-align: center;
    padding: 14px 0;
    font-size: 0.9rem;
    margin-top: 60px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

    footer span {
        color: #fff;
        font-weight: 600;
    }

/* ---------- Footer ---------- */
.app-footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
/* --- Buttons --- */
.btn {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #005dc5);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(90deg, #004aad, #0041a5);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 91, 187, 0.3);
    }

.btn-outline-light:hover {
    background: #fff;
    color: #0d6efd;
}

/* --- Table Styling --- */
.table {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

    .table th {
        background: linear-gradient(90deg, #0d6efd, #004aad);
        color: white;
        border: none;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .table td {
        vertical-align: middle;
        font-size: 0.95rem;
    }

.table-hover tbody tr:hover {
    background-color: #f0f7ff;
    transition: 0.3s ease;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background: linear-gradient(90deg, #0d6efd, #004aad);
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

    .card-header h4 {
        font-weight: 600;
        margin: 0;
    }

/* --- Alerts --- */
.alert {
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(90deg, #d1f7d6, #eafbe7);
    color: #155724;
    border-left: 6px solid #28a745;
}

.alert-danger {
    background: linear-gradient(90deg, #fde2e1, #fff1f1);
    color: #721c24;
    border-left: 6px solid #dc3545;
}

/* --- Button Animations --- */
.btn-outline-warning:hover i,
.btn-outline-danger:hover i {
    transform: scale(1.15);
    transition: 0.2s ease;
}

/* --- Subtle Transitions --- */
a, button {
    transition: all 0.25s ease-in-out;
}
/* Body & Background */
body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #fdfdfd 0%, #f2f8ff 100%);
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e3a8a;
    text-transform: uppercase;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
    transition: 0.3s;
}

    .btn-gradient:hover {
        background: linear-gradient(90deg, #00bfff, #1e90ff);
        transform: scale(1.05);
    }

/* Card Style */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e6ef;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.card-body {
    padding: 15px;
}

/* Table Styling */
.lr-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

    .lr-table thead {
        background: linear-gradient(90deg, #4e73df, #1cc88a);
        color: white;
        font-weight: 600;
    }

    .lr-table th, .lr-table td {
        padding: 10px 12px;
        border: 1px solid #dee2e6;
    }

    .lr-table tr:hover {
        background-color: #f1f5ff;
        transition: 0.3s ease-in-out;
    }

/* Action Buttons */
.action-buttons a,
.action-buttons button {
    margin: 2px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-danger {
    background-color: #dc3545;
    border: none;
}

    .btn-danger:hover {
        background-color: #b02a37;
    }

.btn-success {
    background-color: #28a745;
    border: none;
}

    .btn-success:hover {
        background-color: #218838;
    }

/* Table Shadow Effect */
.table-hover tbody tr:hover {
    background-color: #e8f0ff !important;
}

/* Responsive */
@media (max-width: 992px) {
    .lr-table {
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

/* Edit LR Page Styling */
.edit-lr-container {
    max-width: 98%;
}

.section-title {
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #003366;
    border-left: 5px solid #4e73df;
    padding-left: 10px;
    font-size: 1.1rem;
}

.bg-gradient-primary {
    background: linear-gradient(90deg, #007bff, #00bfff);
    padding: 10px 20px;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.table thead {
    background-color: #f1f5ff;
}

.btn {
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

    .btn:hover {
        transform: scale(1.05);
    }

input.form-control, select.form-select, textarea.form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 10px;
    transition: 0.2s ease;
}

    input.form-control:focus, select.form-select:focus, textarea.form-control:focus {
        border-color: #4e73df;
        box-shadow: 0 0 0 0.2rem rgba(78,115,223,.25);
    }