/* Global Theme Overrides */
body.dark-theme {
    background-color: #0f0f0f !important;
    color: #eaeaea !important;
}

/* Footer */
.footer {
    background: #0b0b0b;
    color: #ccc;
    padding: 40px 20px;
    border-top: 1px solid #222;
    box-shadow: 0 -2px 10px rgba(0, 255, 213, 0.05);
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-col {
    flex: 1 1 calc(25% - 30px);
    min-width: 220px;
}
.footer h6 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin-bottom: 8px;
}
.footer ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer ul li a:hover {
    color: #00ffd5;
    text-shadow: 0 0 10px #00ffd5;
}
.footer .contact {
    font-size: 14px;
    color: #bbb;
}
.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 40px;
}

/* Utility Glow Classes */
.glow-text {
    color: #00ffd5;
    text-shadow: 0 0 5px #00ffd5, 0 0 10px #00ffd5;
}
.glow-bg {
    background: linear-gradient(135deg, #00ffd5 0%, #00a8ff 100%);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.3);
}
.glow-border {
    border: 2px solid #00ffd5;
    box-shadow: 0 0 8px #00ffd5;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #00ffd5;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00c27a;
}

/* Modal / Popup */
.modal {
    background: #121212;
    border: 1px solid #333;
    border-radius: 10px;
    color: #eee;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.08);
}
.modal h2 {
    color: #00ffd5;
    text-shadow: 0 0 10px #00ffd5;
}

/* Tooltip */
.tooltip {
    background-color: #1a1a1a;
    color: #00ffd5;
    border: 1px solid #00ffd5;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 0 8px rgba(0, 255, 213, 0.1);
}

/* Glow Animation */
@keyframes glowPulse {
    0%   { box-shadow: 0 0 5px #00ffd5; }
    50%  { box-shadow: 0 0 20px #00ffd5; }
    100% { box-shadow: 0 0 5px #00ffd5; }
}
.glow-pulse {
    animation: glowPulse 2s infinite;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
    }
    .footer-col {
        flex: 1 1 100%;
    }
}

/* Car Listing Zoom Gallery */
.zoom-img {
    transition: 0.3s ease;
    border-radius: 10px;
    border: 1px solid #00ffd5;
}
.zoom-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(0, 255, 213, 0.3);
}

/* Soft-glow container */
.glow-soft {
    border: 1px solid #00ffd5;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 255, 213, 0.12);
}

/* Styled comment block */
.comment-box {
    background: #151515;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    color: #ddd;
}
.comment-box small {
    color: #888;
    display: block;
    margin-top: 5px;
}

.alert-error {
    background: #2a0d0d;
    color: #ff6b6b;
    padding: 12px 18px;
    border-left: 4px solid #ff4d4d;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1);
}

.dashboard-section {
    background: #151515;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0, 255, 213, 0.05);
}
.dashboard-section h5 {
    color: #00ffd5;
    margin-bottom: 15px;
}

.dashboard-list li {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #1c1c1c;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #eee;
    font-size: 0.95rem;
    box-shadow: 0 0 5px rgba(0, 255, 213, 0.04);
}
.dashboard-list li span.status-badge {
    font-size: 0.8rem;
    background: #333;
    color: #00ffd5;
    padding: 4px 10px;
    border-radius: 20px;
}
.status-badge.open {
    background: #222;
}
.status-badge.closed {
    background: #004d40;
    color: #aaffcc;
}

/* Dashboard Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.custom-table th, .custom-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    text-align: left;
}
.custom-table th {
    background-color: #111;
    color: #00ffd5;
}
.custom-table td {
    color: #ccc;
}

/**CARS**/

.car-featured img.main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-thumbs img.thumb-img {
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
}

.sticky-box {
    position: sticky;
    top: 100px;
}

.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    margin-bottom: 6px;
}


.grid-2 {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/**IMAGE GALLERY**/

.gallery-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.gallery-main {
    position: relative;
    background: #0c0f17;
    border-radius: 14px;
    padding: 20px;
    min-height: 440px;
    display: flex;
    justify-content: center;   /* Center horizontally */
    align-items: center;       /* Center vertically */
    text-align: center;
    overflow: hidden;
}


.gallery-main img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}


.gallery-thumbnails {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumbnails img {
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active-thumb {
    opacity: 1;
    border: 2px solid #00ffc3;
}

.nav {
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    transform: translateY(-50%);
}

.nav.left {
    left: 15px;
}
.nav.right {
    right: 15px;
}


.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2ecc71;
    color: white;
    padding: 8px 14px;
    font-weight: bold;
    border-radius: 4px;
}
