/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0e0e0e;
    color: #eaeaea;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #00ffd5;
}
a:hover {
    color: #0ff;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #0d0d0d;
    border-bottom: 1px solid #222;
    padding: 14px 20px;
    box-shadow: 0 2px 10px rgba(0,255,200,0.07);
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.nav-links a {
    font-weight: 600;
    color: #ccc;
    transition: 0.3s ease;
}
.nav-links a:hover {
    color: #00ffd5;
    text-shadow: 0 0 6px #00ffd5;
}
.logo-link {
    display: inline-block;
}
.text-danger {
    color: #ff4d4d;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/images/banner.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Search Bar */
.search-bar {
    margin-top: 30px;
}
.search-bar input,
.search-bar select {
    padding: 14px;
    width: 100%;
    background-color: #1c1c1c;
    border: none;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 255, 200, 0.2);
    font-size: 1rem;
}
.search-bar .btn {
    background: linear-gradient(135deg, #00ffd5, #00a8ff);
    color: #0e0e0e;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.7);
}
.search-bar .btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #00a8ff, #00ffd5);
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.4);
}

/* Car Grid */
.car-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.car-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    flex: 1 1 calc(25% - 20px);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.08);
    transition: 0.3s ease;
}
.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.2);
}
.car-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.car-card .info {
    padding: 15px;
}
.car-card .info h5 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #fff;
}
.car-card .price {
    font-weight: bold;
    color: #00ffd5;
}
.car-card .dealer {
    font-size: 14px;
    color: #aaa;
}
.verified-badge {
    color: #00ffd5;
    margin-left: 5px;
    font-size: 16px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00ffd5, #00a8ff);
    color: #0e0e0e;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 0 12px #00ffd5;
    transition: 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px #00ffd5, 0 0 40px #00a8ff;
}
.btn-secondary {
    display: inline-block;
    background: #1c1c1c;
    color: #ccc;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #333;
    box-shadow: 0 0 6px rgba(0, 255, 213, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #222;
    color: #00ffd5;
    border-color: #00ffd5;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.15);
}

.btn-small {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
}

.btn-danger {
    display: inline-block;
    background: #4b1f1f;
    color: #ff5a5a;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #6c1e1e;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.07);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-danger:hover {
    background: #601f1f;
    color: #fff;
    border-color: #ff2e2e;
    box-shadow: 0 0 10px rgba(255, 66, 66, 0.2);
}

.btn-success {
    background-color: #00d29b;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 8px #00ffd5, 0 0 4px #00ffd5 inset;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-success:hover {
    background-color: #00ffbf;
    transform: translateY(-1px);
}

.btn-success:active {
    transform: scale(0.98);
}


.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: #222;
    color: #00ffd5;
    box-shadow: 0 0 5px rgba(0,255,213,0.2);
}

/* Basic grid layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.form-row input,
.form-row select {
    flex: 1 1 200px;
    padding: 12px;
    background: #1c1c1c;
    color: #00ffd5;
    border: 1px solid #00ffd5;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffd5;
}

/* Section Titles & Utilities */
.advanced-toggle {
    margin-top: 10px;
    text-align: center;
}
.d-none {
    display: none;
}
.mt-3 {
    margin-top: 1rem;
}
.py-section {
    padding: 60px 0;
}
.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00ffd5;
}

/* Dealer Card */
.dealer-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.08);
    transition: 0.3s ease;
}
.dealer-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.2);
}
.dealer-card h5 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}
.dealer-card p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
}
.dealer-card a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #00ffd5, #00a8ff);
    color: #000;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 12px #00ffd5;
    transition: 0.3s ease;
}
.dealer-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px #00ffd5, 0 0 32px #00a8ff;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .car-card {
        flex: 1 1 100%;
    }

    .search-bar input,
    .search-bar select {
        font-size: 0.95rem;
        padding: 10px;
    }

    .search-bar .btn {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .form-row input,
    .form-row select {
        flex: 1 1 100%;
    }
}


.glow-border-box {
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    background: #121212;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.05);
}

.input-field {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #00ffd5;
    border: 1px solid #00ffd5;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.2);
    transition: 0.3s ease;
}
.input-field:focus {
    outline: none;
    box-shadow: 0 0 20px #00ffd5;
}
.textarea-field {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: #00ffd5;
    border: 1px solid #00ffd5;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.2);
}
.label-text {
    color: #ccc;
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
}
.view-more-center {
    text-align: center;
    margin-top: 30px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.05);
}
.stat-card h4 {
    color: #00ffd5;
    margin-bottom: 8px;
}
.stat-card p {
    color: #aaa;
    font-size: 0.9rem;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.admin-list li {
    background: #151515;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #ddd;
    font-size: 0.95rem;
    box-shadow: 0 0 5px rgba(0, 255, 213, 0.04);
}
.admin-btns a {
    margin: 10px 10px 0 0;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.custom-table th, .custom-table td {
    padding: 14px;
    border-bottom: 1px solid #333;
    text-align: left;
}
.custom-table th {
    background-color: #111;
    color: #00ffd5;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.custom-table td {
    color: #ccc;
    font-size: 0.95rem;
}

.action-buttons a {
    display: inline-block;
    margin: 3px 4px 0 0;
}

.mega-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid #222;
    margin-top: 50px;
}

.footer-col h6 {
    font-size: 16px;
    color: #00ffd5;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #00ffd5;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 30px;
    padding-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: #fff;
    font-weight: bold;
    background: #222;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #00ffd5;
    color: #000;
}
