/* ძირითადი სტილები */
@font-face {
    font-family: 'NotoSans';
    src: url(fonts/NotoSansAmbassadori-Bold.otf);
}
a {
    text-decoration: none;
}

:root {
    --primary-yellow: #FFC107;
    --primary-red: #DC3545;
    --sidebar-bg: #212529;
    --main-bg: #f8f9fa;
    --text-color: #343a40;
    --light-text-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --button-bg: #007bff;
    --button-hover-bg: #0056b3;
    --details-btn-bg: #007bff;
    --details-btn-hover-bg: #0056b3;
    --sidebar-width-expanded: 250px;
    --sidebar-width-collapsed: 80px;
}

body {
    font-family: 'NotoSans'; /* cite: 1 */
    margin: 0; /* cite: 1 */
    padding: 0; /* cite: 1 */
    background-color: var(--main-bg); /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    min-height: 100vh; /* cite: 1 */
    overflow-x: hidden; /* cite: 1 */
}

.container {
    width: 100%; /* cite: 1 */
}

/* Sidebar სტილები */
.sidebar {
    width: var(--sidebar-width-expanded); /* cite: 1 */
    background-color: var(--sidebar-bg); /* cite: 1 */
    color: var(--light-text-color); /* cite: 1 */
    padding: 20px 0; /* cite: 1 */
    display: flex; /* cite: 1 */
    flex-direction: column; /* cite: 1 */
    transition: width 0.3s ease-in-out; /* cite: 1 */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* cite: 1 */
    flex-shrink: 0; /* cite: 1 */
    position: fixed; /* cite: 1 */
    top: 0; /* cite: 1 */
    left: 0; /* cite: 1 */
    height: 100vh; /* cite: 1 */
    overflow-y: auto; /* cite: 1 */
    z-index: 1000; /* cite: 1 */
}

/* Sidebar-scroll-ის ვიზუალური მოცილება (ფუნქციონალი რჩება) */
.sidebar::-webkit-scrollbar {
    display: none;          /* Chrome, Safari, Edge */
}

.sidebar {
    -ms-overflow-style: none;   /* IE და ძველი Edge */
    scrollbar-width: none;      /* Firefox */
}


/* Sidebar Header */
.sidebar-header {
    display: flex; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    align-items: center; /* cite: 1 */
    padding: 0 20px 20px 20px; /* cite: 1 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* cite: 1 */
    margin-bottom: 30px; /* cite: 1 */
}

/* ლოგოს ლინკის კონტეინერი */
.sidebar-header a {
    display: block; /* cite: 1 */
    line-height: 0; /* cite: 1 */
}

/* ლოგოს სურათი */
.sidebar-header .logo {
    width: 80px; /* cite: 1 */
    height: 80px; /* cite: 1 */
    display: block; /* cite: 1 */
    object-fit: contain; /* cite: 1 */
    background-color: transparent; /* cite: 1 */
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out; /* cite: 1 */
}

.sidebar.collapsed .sidebar-header {
    padding: 0 10px 20px 10px; /* cite: 1 */
    margin-bottom: 20px; /* cite: 1 */
}

.sidebar.collapsed .sidebar-header .logo {
    width: 60px; /* cite: 1 */
    height: 60px; /* cite: 1 */
}

/* Sidebar Navigation */
.sidebar-nav {
    flex-grow: 1; /* cite: 1 */
}

.sidebar-nav ul {
    list-style: none; /* cite: 1 */
    padding: 0; /* cite: 1 */
    margin: 0; /* cite: 1 */
}

.sidebar-nav li a {
    display: flex; /* cite: 1 */
    align-items: center; /* cite: 1 */
    padding: 15px 20px; /* cite: 1 */
    color: var(--light-text-color); /* cite: 1 */
    text-decoration: none; /* cite: 1 */
    font-size: 1.1em; /* cite: 1 */
    transition: background-color 0.3s ease, color 0.3s ease; /* cite: 1 */
    white-space: nowrap; /* cite: 1 */
    overflow: hidden; /* cite: 1 */
    text-overflow: ellipsis; /* cite: 1 */
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background-color: rgba(255, 255, 255, 0.1); /* cite: 1 */
    color: var(--primary-yellow); /* cite: 1 */
}

.sidebar-nav li a .fas {
    margin-right: 10px; /* cite: 1 */
    width: 20px; /* cite: 1 */
    text-align: center; /* cite: 1 */
    flex-shrink: 0; /* cite: 1 */
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 20px 30px 20px; /* cite: 1 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* cite: 1 */
}

.logout-btn {
    font-family: 'NotoSans'; /* cite: 1 */
    background-color: var(--primary-red); /* cite: 1 */
    color: var(--light-text-color); /* cite: 1 */
    border: none; /* cite: 1 */
    padding: 10px 15px; /* cite: 1 */
    border-radius: 5px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    width: 100%; /* cite: 1 */
    font-size: 1em; /* cite: 1 */
    display: flex; /* cite: 1 */
    align-items: center; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    transition: background-color 0.3s ease; /* cite: 1 */
}

.logout-btn:hover {
    background-color: #c82333; /* cite: 1 */
}

.logout-btn .fas {
    margin-right: 8px; /* cite: 1 */
    flex-shrink: 0; /* cite: 1 */
}

/* JavaScript-ის მიერ დამატებული კლასები საიდბარის შეკეცვისთვის */
.sidebar.collapsed {
    width: var(--sidebar-width-collapsed); /* cite: 1 */
}

.sidebar.collapsed .sidebar-nav li a {
    justify-content: center; /* cite: 1 */
    padding: 15px 10px; /* cite: 1 */
}

.sidebar.collapsed .sidebar-nav li a span,
.sidebar.collapsed .logout-btn span {
    display: none; /* cite: 1 */
}

.sidebar.collapsed .sidebar-nav li a .fas,
.sidebar.collapsed .logout-btn .fas {
    margin-right: 0; /* cite: 1 */
}

.sidebar.collapsed .sidebar-footer {
    padding: 10px 10px 20px 10px; /* cite: 1 */
    text-align: center; /* cite: 1 */
}

.sidebar.collapsed .logout-btn {
    width: auto; /* cite: 1 */
    height: auto; /* cite: 1 */
    padding: 12px; /* cite: 1 */
    border-radius: 5px; /* cite: 1 */
    background-color: transparent; /* cite: 1 */
    color: var(--light-text-color); /* cite: 1 */
    transition: background-color 0.3s ease, color 0.3s ease; /* cite: 1 */
}

.sidebar.collapsed .logout-btn:hover {
    background-color: var(--primary-red); /* cite: 1 */
    color: var(--light-text-color); /* cite: 1 */
}

/* Main Content სტილები */
.main-content {
    flex-grow: 1; /* cite: 1 */
    padding: 20px; /* cite: 1 */
    background-color: var(--main-bg); /* cite: 1 */
    position: relative; /* cite: 1 */
    box-sizing: border-box; /* cite: 1 */
    margin-left: var(--sidebar-width-expanded); /* cite: 1 */
    width: calc(100% - var(--sidebar-width-expanded)); /* cite: 1 */
}

/* JavaScript-ის მიერ დამატებული კლასები საიდბარის შეკეცვისას main-content-ის დასარეგულირებლად */
body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-width-collapsed); /* cite: 1 */
    width: calc(100% - var(--sidebar-width-collapsed)); /* cite: 1 */
}

.toggle-btn {
    background: none; /* cite: 1 */
    border: none; /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    padding: 5px; /* cite: 1 */
    border-radius: 5px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    font-size: 1.8em; /* cite: 1 */
    position: absolute; /* cite: 1 */
    top: 20px; /* cite: 1 */
    left: 0px; /* cite: 1 */
    z-index: 100; /* cite: 1 */
    transition: color 0.3s ease; /* cite: 1 */
    display: none; /* cite: 1 */
}

.toggle-btn:hover {
    color: var(--primary-yellow); /* cite: 1 */
}

.main-header {
    margin-bottom: 20px; /* cite: 1 */
    padding-bottom: 10px; /* cite: 1 */
    border-bottom: 1px solid var(--border-color); /* cite: 1 */
    text-align: center; /* cite: 1 */
}

.main-header h1 {
    font-size: 2em; /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    margin: 0; /* cite: 1 */
}

.car-listings {
    display: grid; /* cite: 1 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); /* cite: 1 */
    gap: 20px; /* cite: 1 */
    width: 100%;
    justify-content: center;
    align-items: start;
    box-sizing: border-box;
    margin: 0 auto; /* cite: 1 */
    padding: 0 10px; /* cite: 1 */
}

.car-card {
    background-color: var(--card-bg); /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    overflow: hidden; /* cite: 1 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* cite: 1 */
    position: relative; /* cite: 1 */
    display: flex; /* cite: 1 */
    flex-direction: column; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* cite: 1 */
}

.car-card:hover {
    transform: translateY(-5px); /* cite: 1 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* cite: 1 */
}

.car-price {
    position: absolute; /* cite: 1 */
    top: 10px; /* cite: 1 */
    right: 10px; /* cite: 1 */
    background-color: var(--primary-yellow); /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    padding: 5px 10px; /* cite: 1 */
    border-radius: 5px; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
    font-size: 1.1em; /* cite: 1 */
    z-index: 10; /* cite: 1 */
}

.car-image {
    width: 100%; /* cite: 1 */
    height: 200px; /* cite: 1 */
    object-fit: cover; /* cite: 1 */
    display: block; /* cite: 1 */
}

.car-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* სასურველია */
}


/* სათაური ორ ხაზზე ფიქსირდება, მერე ჭრის "..."-ით — ყველას ერთნაირი სიმაღლე ექნება */
.car-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--text-color);
    line-height: 1.3;                /* გამოთვლის საფუძველი */
    min-height: 2.6em;               /* 2 ხაზი x 1.3 = ~2.6em */
    display: -webkit-box;
    -webkit-line-clamp: 2;           /* მაქს. 2 ხაზი */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-info p {
    margin: 5px 0; /* cite: 1 */
    font-size: 0.95em; /* cite: 1 */
    line-height: 1.4; /* cite: 1 */
}

.car-info p strong {
    color: var(--sidebar-bg); /* cite: 1 */
}

/* chemi cvlilebebi */
.thumbnail-img.active {
    border: 2px solid #007bff; /* cite: 1 */
    opacity: 1; /* cite: 1 */
}

.thumbnail-img {
    max-width: 100px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    opacity: 0.7; /* cite: 1 */
    transition: opacity 0.3s ease; /* cite: 1 */
}

.thumbnail-img:hover {
    font-family: 'NotoSans'; /* cite: 1 */
    opacity: 1; /* cite: 1 */
}

.category-btn.active {
    font-family: 'NotoSans'; /* cite: 1 */
    background-color: #007bff; /* cite: 1 */
    color: white; /* cite: 1 */
}

/* Car Card Grid Styles (for index.html) */
.car-cards-section {
    padding: 20px; /* cite: 1 */
}

.car-grid {
    display: grid; /* cite: 1 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* cite: 1 */
    gap: 20px; /* cite: 1 */
}

/* Car Detail Section Styles */
.car-detail-section {
    padding: 20px; /* cite: 1 */
    max-width: 1200px; /* cite: 1 */
    margin: 0 auto; /* cite: 1 */
}

.car-detail-container {
    display: flex; /* cite: 1 */
    flex-wrap: wrap; /* cite: 1 */
    gap: 30px; /* cite: 1 */
    background-color: var(--card-bg); /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* cite: 1 */
    padding: 20px; /* cite: 1 */
    align-items: flex-start; /* cite: 1 */
    box-sizing: border-box; /* cite: 1 */
}

/* Image Gallery (Slider) Styles */
.car-image-gallery {
    flex: 1; /* cite: 1 */
    min-width: 300px; /* cite: 1 */
    position: relative; /* cite: 1 */
    display: flex; /* cite: 1 */
    flex-direction: column; /* cite: 1 */
    align-items: center; /* cite: 1 */
    box-sizing: border-box; /* cite: 1 */
}

.slider-controls-top {
    width: 100%; /* cite: 1 */
    display: flex; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    gap: 10px; /* cite: 1 */
    margin-bottom: 15px; /* cite: 1 */
}

.category-btn {
    font-family: 'NotoSans'; /* cite: 1 */
    background: none; /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    padding: 8px 15px; /* cite: 1 */
    border-radius: 20px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    font-size: 0.9em; /* cite: 1 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* cite: 1 */
}

.category-btn:hover,
.category-btn.active {
    font-family: 'NotoSans'; /* cite: 1 */
    background-color: var(--primary-yellow); /* cite: 1 */
    color: var(--sidebar-bg); /* cite: 1 */
    border-color: var(--primary-yellow); /* cite: 1 */
}

.slider-main {
    position: relative; /* cite: 1 */
    width: 100%; /* cite: 1 */
    max-width: 600px; /* cite: 1 */
    height: 400px; /* cite: 1 */
    overflow: hidden; /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    background-color: #f0f0f0; /* cite: 1 */
    display: flex; /* cite: 1 */
    align-items: center; /* cite: 1 */
    justify-content: center; /* cite: 1 */
}

.current-car-image {
    width: 100%; /* cite: 1 */
    height: 100%; /* cite: 1 */
    object-fit: contain; /* cite: 1 */
    cursor: zoom-in; /* cite: 1 */
    transition: opacity 0.3s ease; /* cite: 1 */
}

/* Updated Slider Arrow Styles */
.slider-arrow {
    position: absolute; /* cite: 1 */
    top: 50%; /* cite: 1 */
    transform: translateY(-50%); /* cite: 1 */
    background: transparent; /* cite: 1 */
    border: none; /* cite: 1 */
    color: #fff; /* cite: 1 */
    padding: 8px 12px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    font-size: 2.5em; /* cite: 1 */
    z-index: 10; /* cite: 1 */
    opacity: 0.7; /* cite: 1 */
    transition: opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease; /* cite: 1 */
}

.slider-arrow:hover {
    opacity: 1; /* cite: 1 */
    color: var(--primary-yellow); /* cite: 1 */
    background-color: rgba(0, 0, 0, 0.1); /* cite: 1 */
}

.slider-arrow.prev-arrow {
    left: 10px; /* cite: 1 */
}

.slider-arrow.next-arrow {
    right: 10px; /* cite: 1 */
}

.slider-thumbnails {
    display: flex; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    gap: 10px; /* cite: 1 */
    margin-top: 15px; /* cite: 1 */
    flex-wrap: wrap; /* cite: 1 */
}

.thumbnail {
    width: 60px; /* cite: 1 */
    height: 40px; /* cite: 1 */
    object-fit: cover; /* cite: 1 */
    border: 2px solid transparent; /* cite: 1 */
    border-radius: 4px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    transition: border-color 0.3s ease; /* cite: 1 */
    opacity: 0.7; /* cite: 1 */
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-yellow); /* cite: 1 */
    opacity: 1; /* cite: 1 */
}

/* Car Details Info Styles - Updated Grid Layout and Dividers */
.car-details-info {
    font-family: 'NotoSans'; /* cite: 1 */
    flex: 1; /* cite: 1 */
    min-width: 320px; /* cite: 1 */
    display: grid; /* cite: 1 */
    grid-template-columns: auto 1fr; /* cite: 1 */
    gap: 0; /* cite: 1 */
    align-items: baseline; /* cite: 1 */
    row-gap: 10px; /* cite: 1 */
    box-sizing: border-box; /* cite: 1 */
}

.car-details-info h2 {
    font-family: 'NotoSans'; /* cite: 1 */
    font-size: 1.8em; /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    margin-top: 0; /* cite: 1 */
    margin-bottom: 15px; /* cite: 1 */
    border-bottom: 1px solid var(--border-color); /* cite: 1 */
    padding-bottom: 8px; /* cite: 1 */
    grid-column: 1 / -1; /* cite: 1 */
}

.car-details-info p {
    font-family: 'NotoSans'; /* cite: 1 */
    margin: 0; /* cite: 1 */
    font-size: 1em; /* cite: 1 */
    line-height: 1.3; /* cite: 1 */
    grid-column: 2; /* cite: 1 */
    border-bottom: 1px dotted var(--border-color); /* cite: 1 */
    padding-bottom: 7px; /* cite: 1 */
    margin-bottom: -1px; /* cite: 1 */
}

/* Remove bottom border for the last <p> element */
.car-details-info p:last-of-type {
    font-family: 'NotoSans'; /* cite: 1 */
    border-bottom: none; /* cite: 1 */
    padding-bottom: 0; /* cite: 1 */
    margin-bottom: 0; /* cite: 1 */
}

.car-details-info strong {
    font-family: 'NotoSans'; /* cite: 1 */
    color: var(--sidebar-bg); /* cite: 1 */
    grid-column: 1; /* cite: 1 */
    text-align: right; /* cite: 1 */
    padding-right: 15px; /* cite: 1 */
    white-space: nowrap; /* cite: 1 */
    line-height: 1.3; /* cite: 1 */
    font-size: 1em; /* cite: 1 */
}

/* Evacuator Button - Updated */
.evacuator-btn {
    font-family: 'NotoSans'; /* cite: 1 */
    background-color: var(--primary-red); /* cite: 1 */
    color: var(--light-text-color); /* cite: 1 */
    border: none; /* cite: 1 */
    padding: 8px 15px; /* cite: 1 */
    border-radius: 5px; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    font-size: 1em; /* cite: 1 */
    margin-top: 25px; /* cite: 1 */
    display: flex; /* cite: 1 */
    align-items: center; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    gap: 8px; /* cite: 1 */
    transition: background-color 0.3s ease; /* cite: 1 */
    grid-column: 1 / -1; /* cite: 1 */
    width: fit-content; /* cite: 1 */
    margin-left: auto; /* cite: 1 */
    margin-right: auto; /* cite: 1 */
}

.evacuator-btn:hover {
    background-color: #c82333; /* cite: 1 */
}

/* Image Modal Styles */
.image-modal {
    display: none; /* cite: 1 */
    position: fixed; /* cite: 1 */
    z-index: 1000; /* cite: 1 */
    left: 0; /* cite: 1 */
    top: 0; /* cite: 1 */
    width: 100%; /* cite: 1 */
    height: 100%; /* cite: 1 */
    overflow: auto; /* cite: 1 */
    background-color: rgba(0, 0, 0, 0.9); /* cite: 1 */
    flex-direction: column; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    align-items: center; /* cite: 1 */
}

.modal-content {
    margin: auto; /* cite: 1 */
    display: block; /* cite: 1 */
    max-width: 90%; /* cite: 1 */
    max-height: 90%; /* cite: 1 */
    object-fit: contain; /* cite: 1 */
    transition: transform 0.2s ease-in-out; /* cite: 1 */
    transform-origin: center center; /* cite: 1 */
    z-index: 1000; /* cite: 1 */
}

.close-modal {
    position: absolute; /* cite: 1 */
    top: 20px; /* cite: 1 */
    right: 35px; /* cite: 1 */
    color: #f1f1f1; /* cite: 1 */
    font-size: 40px; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
    transition: 0.3s; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    z-index: 1001; /* cite: 1 */
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb; /* cite: 1 */
    text-decoration: none; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
}

.modal-controls { /* cite: 1 */
    position: absolute; /* cite: 1 */
    bottom: 30px; /* cite: 1 */
    display: flex; /* cite: 1 */
    gap: 15px; /* cite: 1 */
    z-index: 1002; /* cite: 1 */
}

.modal-controls button {
    background: var(--primary-yellow); /* cite: 1 */
    border: none; /* cite: 1 */
    color: var(--sidebar-bg); /* cite: 1 */
    font-size: 1.5em; /* cite: 1 */
    padding: 10px 15px; /* cite: 1 */
    border-radius: 50%; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    transition: background-color 0.3s ease; /* cite: 1 */
}

.modal-controls button:hover { /* cite: 1 */
    background: #e0a800; /* cite: 1 */
}

/* Responsive adjustments for sidebar and general layout */
@media (min-width: 1025px) {
    .sidebar {
        width: var(--sidebar-width-expanded); /* cite: 1 */
    }
    .main-content {
        margin-left: var(--sidebar-width-expanded); /* cite: 1 */
        width: calc(100% - var(--sidebar-width-expanded)); /* cite: 1 */
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width-collapsed); /* cite: 1 */
        padding: 10px 0; /* cite: 1 */
    }
    .sidebar .sidebar-header {
        justify-content: center; /* cite: 1 */
        padding: 0 10px 20px 10px; /* cite: 1 */
        margin-bottom: 20px; /* cite: 1 */
    }
    .sidebar .sidebar-header .logo { /* cite: 1 */
        max-width: 50px; /* cite: 1 */
        height: 50px; /* cite: 1 */
    }
    .sidebar .sidebar-nav li a {
        justify-content: center; /* cite: 1 */
        padding: 15px 10px; /* cite: 1 */
    }
    .sidebar .sidebar-nav li a span {
        display: none; /* cite: 1 */
    }
    .sidebar .sidebar-nav li a .fas {
        margin-right: 0; /* cite: 1 */
    }
    .sidebar .logout-btn {
        width: auto; /* cite: 1 */
        height: auto; /* cite: 1 */
        padding: 12px; /* cite: 1 */
        border-radius: 5px; /* cite: 1 */
        background-color: transparent; /* cite: 1 */
        color: var(--light-text-color); /* cite: 1 */
        transition: background-color 0.3s ease, color 0.3s ease; /* cite: 1 */
    }
    .sidebar .logout-btn:hover {
        background-color: var(--primary-red); /* cite: 1 */
        color: var(--light-text-color); /* cite: 1 */
    }
    .sidebar .logout-btn span {
        display: none; /* cite: 1 */
    }
    .sidebar .logout-btn .fas {
        margin-right: 0; /* cite: 1 */
    }
    .sidebar .sidebar-footer {
        padding: 10px 10px 20px 10px; /* cite: 1 */
        text-align: center; /* cite: 1 */
    }
    .main-content {
        margin-left: var(--sidebar-width-collapsed); /* cite: 1 */
        width: calc(100% - var(--sidebar-width-collapsed)); /* cite: 1 */
    }
    .toggle-btn {
        display: none; /* cite: 1 */
    }
}

/* Very Small Screens (e.g., iPhone SE) - 768px-ზე და ნაკლებზე */
@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-width-collapsed); /* cite: 1 */
    }
    .main-content {
        margin-left: var(--sidebar-width-collapsed); /* cite: 1 */
        width: calc(100% - var(--sidebar-width-collapsed)); /* cite: 1 */
        padding: 10px 5px; /* cite: 1 */
    }

    .car-listings {
        grid-template-columns: 1fr; /* cite: 1 */
        padding: 0 5px; /* cite: 1 */
    }
    .car-card {
        max-width: 320px; /* cite: 1 */
        margin: 0 auto; /* cite: 1 */
    }
    .car-price {
        font-size: 0.9em; /* cite: 1 */
        padding: 3px 6px; /* cite: 1 */
    }
    .car-info h3 {
        font-size: 1em; /* cite: 1 */
    }
    .car-info p {
        font-size: 0.85em; /* cite: 1 */
    }

    /* Car Detail Section Responsive Adjustments */
    .car-detail-container {
        flex-direction: column; /* cite: 1 */
        padding: 15px; /* cite: 1 */
    }
    .car-image-gallery,
    .car-details-info {
        min-width: unset; /* cite: 1 */
        width: 100%; /* cite: 1 */
    }
    .car-details-info h2 {
        font-size: 1.5em; /* cite: 1 */
    }
    .car-details-info {
        grid-template-columns: 1fr; /* cite: 1 */
        row-gap: 5px; /* cite: 1 */
    }
    .car-details-info strong {
        text-align: left; /* cite: 1 */
        padding-right: 0; /* cite: 1 */
        display: block; /* cite: 1 */
        font-size: 0.95em; /* cite: 1 */
        color: var(--text-color); /* cite: 1 */
    }
    .car-details-info p {
        grid-column: 1; /* cite: 1 */
        margin-bottom: 5px; /* cite: 1 */
        padding-bottom: 5px; /* cite: 1 */
        font-size: 1em; /* cite: 1 */
    }
    .car-details-info p:last-of-type {
        border-bottom: none; /* cite: 1 */
        padding-bottom: 0; /* cite: 1 */
        margin-bottom: 0; /* cite: 1 */
    }
    .car-details-info h2,
    .evacuator-btn {
        grid-column: 1; /* cite: 1 */
    }
    .evacuator-btn {
        width: 100%; /* cite: 1 */
        font-size: 0.95em; /* cite: 1 */
        padding: 10px 15px; /* cite: 1 */
    }
    .slider-main {
        height: 300px; /* cite: 1 */
    }
    .slider-arrow {
        font-size: 1.8em; /* cite: 1 */
        padding: 5px 8px; /* cite: 1 */
    }
}

/* Additions for opening date styling */
.opening-date-info {
    grid-column: 1 / -1; /* cite: 1 */
    text-align: center; /* cite: 1 */
    margin-top: 20px; /* cite: 1 */
    padding: 10px 0; /* cite: 1 */
    border-top: 1px dotted var(--border-color); /* cite: 1 */
    border-bottom: 1px dotted var(--border-color); /* cite: 1 */
}

.highlight-date {
    display: inline-block; /* cite: 1 */
    background-color: #d4edda; /* cite: 1 */
    color: #155724; /* cite: 1 */
    padding: 8px 15px; /* cite: 1 */
    border-radius: 25px; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
    font-size: 1.1em; /* cite: 1 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* cite: 1 */
    animation: pulse 1.5s infinite ease-in-out; /* cite: 1 */
}

@keyframes pulse {
    0% {
        transform: scale(1); /* cite: 1 */
        opacity: 1; /* cite: 1 */
    }
    50% {
        transform: scale(1.03); /* cite: 1 */
        opacity: 0.95; /* cite: 1 */
    }
    100% {
        transform: scale(1); /* cite: 1 */
        opacity: 1; /* cite: 1 */
    }
}

/* Adjustments for responsive view of car details info for opening date */
@media (max-width: 768px) {
    .car-details-info strong {
        text-align: left; /* cite: 1 */
    }
    .opening-date-info {
        text-align: center; /* cite: 1 */
    }
}

@media (max-width: 576px) {
    .car-cards-section {
        padding: 10px; /* cite: 1 */
    }
    .car-card {
        min-width: unset; /* cite: 1 */
    }
    .car-detail-section {
        padding: 10px; /* cite: 1 */
    }
    .category-btn {
        padding: 6px 10px; /* cite: 1 */
        font-size: 0.75em; /* cite: 1 */
    }
    .slider-thumbnails .thumbnail {
        width: 50px; /* cite: 1 */
        height: 35px; /* cite: 1 */
    }
}

/* ==== ავტორიზაციის გვერდის სტილები ==== */
.login-body {
    background-color: var(--main-bg) !important; /* cite: 1 */
    display: flex !important; /* cite: 1 */
    justify-content: center !important; /* cite: 1 */
    align-items: center !important; /* cite: 1 */
    min-height: 100vh !important; /* cite: 1 */
    margin: 0 !important; /* cite: 1 */
    padding: 0 !important; /* cite: 1 */
    color: var(--text-color) !important; /* cite: 1 */
}

.login-container {
    width: 100%; /* cite: 1 */
    max-width: 400px; /* cite: 1 */
    padding: 20px; /* cite: 1 */
}

.login-card {
    background-color: var(--sidebar-bg) !important; /* cite: 1 */
    border: none !important; /* cite: 1 */
    border-radius: 8px !important; /* cite: 1 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important; /* cite: 1 */
}

.login-logo {
    width: 100px; /* cite: 1 */
    height: 100px; /* cite: 1 */
    object-fit: contain; /* cite: 1 */
    margin-bottom: 20px; /* cite: 1 */
}

.login-card .card-body {
    padding: 30px !important; /* cite: 1 */
}

.login-label {
    color: var(--light-text-color) !important; /* cite: 1 */
    font-weight: bold !important; /* cite: 1 */
    margin-bottom: 8px !important; /* cite: 1 */
    display: block !important; /* cite: 1 */
}

.login-input {
    background-color: rgba(255, 255, 255, 0.1) !important; /* cite: 1 */
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* cite: 1 */
    color: var(--light-text-color) !important; /* cite: 1 */
    padding: 10px 15px !important; /* cite: 1 */
    border-radius: 5px !important; /* cite: 1 */
    font-size: 1em !important; /* cite: 1 */
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important; /* cite: 1 */
}

.login-input:focus {
    background-color: rgba(255, 255, 255, 0.2) !important; /* cite: 1 */
    border-color: var(--primary-yellow) !important; /* cite: 1 */
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important; /* cite: 1 */
    color: var(--light-text-color) !important; /* cite: 1 */
}

.login-btn {
    background-color: var(--primary-yellow) !important; /* cite: 1 */
    color: var(--text-color) !important; /* cite: 1 */
    border: none !important; /* cite: 1 */
    padding: 12px 20px !important; /* cite: 1 */
    border-radius: 5px !important; /* cite: 1 */
    font-size: 1.1em !important; /* cite: 1 */
    font-weight: bold !important; /* cite: 1 */
    transition: background-color 0.3s ease, transform 0.2s ease !important; /* cite: 1 */
    margin-top: 15px !important; /* cite: 1 */
}

.login-btn:hover {
    background-color: #e0a800 !important; /* cite: 1 */
    transform: translateY(-2px) !important; /* cite: 1 */
}

.login-copyright-text {
    color: rgba(255, 255, 255, 0.6) !important; /* cite: 1 */
    font-size: 0.9em !important; /* cite: 1 */
}

/* Alert შეტყობინების სტილი */
.alert-danger {
    background-color: #ffcccc !important; /* cite: 1 */
    color: #cc0000 !important; /* cite: 1 */
    border: 1px solid #cc0000 !important; /* cite: 1 */
    border-radius: 5px !important; /* cite: 1 */
    padding: 10px 15px !important; /* cite: 1 */
    margin-bottom: 20px !important; /* cite: 1 */
    text-align: center !important; /* cite: 1 */
}

/* VIN Search Page Specific Styles */
.vin-search-section {
    padding: 30px; /* cite: 1 */
    background-color: var(--card-bg); /* cite: 1 */
    border-radius: 12px; /* cite: 1 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* cite: 1 */
    margin: 30px auto; /* cite: 1 */
    max-width: 900px; /* cite: 1 */
    box-sizing: border-box; /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
}
.vin-search-section, 
.vin-search-section * {
    font-family: 'NotoSans', sans-serif !important;
    font-weight: bold !important;
}


.vin-search-form {
    display: flex; /* cite: 1 */
    gap: 15px; /* cite: 1 */
    margin-bottom: 25px; /* cite: 1 */
    align-items: center; /* cite: 1 */
}

.vin-search-form input[type="text"] {
    flex-grow: 1; /* cite: 1 */
    padding: 12px 18px; /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    font-size: 1.1em; /* cite: 1 */
    outline: none; /* cite: 1 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* cite: 1 */
    background-color: var(--main-bg); /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
}

.vin-search-form input[type="text"]::placeholder {
    color: #999; /* cite: 1 */
}

.vin-search-form input[type="text"]:focus {
    border-color: var(--primary-yellow); /* cite: 1 */
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2); /* cite: 1 */
}

.vin-search-form button {
    padding: 12px 25px; /* cite: 1 */
    background-color: var(--primary-yellow); /* Changed from var(--button-bg) to var(--primary-yellow) */
    color: var(--text-color); /* Changed from var(--light-text-color) to var(--text-color) */
    border: none; /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    font-size: 1.1em; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
    font-family: 'NotoSans', sans-serif; /* cite: 1 */
    cursor: pointer; /* cite: 1 */
    transition: background-color 0.3s ease, transform 0.2s ease; /* cite: 1 */
}

.vin-search-form button:hover {
    background-color: #e0a800; /* Changed from var(--button-hover-bg) to a darker yellow */
    transform: translateY(-1px); /* cite: 1 */
}

#vinResults {
    min-height: 200px; /* გაიზარდა მინიმალური სიმაღლე */
    max-height: 800px; /* მაქსიმალური სიმაღლე "ფურცლის" ეფექტისთვის */
    overflow-y: auto; /* ვერტიკალური სქროლი */
    padding: 20px; /* გაზრდილი padding */
    border: 1px solid var(--border-color); /* cite: 1 */
    border-radius: 8px; /* მომრგვალებული კუთხეები */
    background-color: var(--card-bg); /* ფონი */
    color: var(--text-color); /* ტექსტის ფერი */
    text-align: left; /* cite: 1 */
    white-space: pre-wrap; /* cite: 1 */
    word-wrap: break-word; /* cite: 1 */
    font-family: 'NotoSans', sans-serif; /* cite: 1 */
    line-height: 1.6; /* cite: 1 */
    transition: all 0.5s ease-out; /* გლუვი ანიმაცია ზომის შეცვლაზე */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ოდნავ დიდი ჩრდილი */
}

/* სტილები iframe-ისთვის vinResults-ში */
#vinResults .vin-iframe {
    width: 100%; /* cite: 1 */
    height: 100%; /* iframe-ის სიმაღლე 100% მშობელი div-ის მიმართ */
    border: none; /* cite: 1 */
    background-color: var(--main-bg); /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    font-family: 'NotoSans', sans-serif; /* cite: 1 */
}

#vinResults.loading {
    text-align: center; /* cite: 1 */
    font-style: italic; /* cite: 1 */
    color: #555; /* cite: 1 */
    display: flex; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    align-items: center; /* cite: 1 */
    min-height: 200px; /* retain minimum height for loader */ /* cite: 1 */
    max-height: 200px; /* ensure loader area doesn't stretch */
    overflow-y: hidden; /* hide scrollbar during loading */
}

#vinResults p.loading {
    margin: 0; /* cite: 1 */
}


/* Responsive Adjustments for VIN Search Section */
@media (max-width: 768px) {
    .vin-search-section {
        padding: 15px; /* cite: 1 */
        margin: 15px auto; /* cite: 1 */
    }
    .vin-search-form {
        flex-direction: column; /* cite: 1 */
        gap: 15px; /* cite: 1 */
    }
    .vin-search-form input[type="text"],
    .vin-search-form button {
        width: 100%; /* cite: 1 */
        max-width: unset; /* cite: 1 */
        padding: 12px; /* cite: 1 */
        font-size: 1em; /* cite: 1 */
    }
    #vinResults {
        padding: 15px; /* cite: 1 */
        font-size: 0.95em; /* cite: 1 */
        min-height: 150px; /* cite: 1 */
        max-height: 500px; /* შემცირებული მაქსიმალური სიმაღლე მობილურზე */
    }
    .loader {
        width: 40px; /* cite: 1 */
        height: 40px; /* cite: 1 */
    }
}

@media (max-width: 480px) {
    .vin-search-section {
        padding: 10px; /* cite: 1 */
        margin: 10px auto; /* cite: 1 */
    }
    .vin-search-form input[type="text"] {
        padding: 10px; /* cite: 1 */
        font-size: 0.9em; /* cite: 1 */
        width: calc(100% - 20px); /* შემცირებული სიგანე, რათა არ გავიდეს კიდეებზე */
        margin: 0 auto; /* ცენტრში გასწორება */
        display: block; /* ბლოკად გამოჩენა */
    }
    .vin-search-form button {
        padding: 10px; /* cite: 1 */
        font-size: 0.9em; /* cite: 1 */
    }
    #vinResults {
        padding: 10px; /* cite: 1 */
        font-size: 0.9em; /* cite: 1 */
        min-height: 120px; /* cite: 1 */
        max-height: 400px; /* კიდევ უფრო შემცირებული მაქსიმალური სიმაღლე პატარა ეკრანებზე */
    }
}

/* Copart Calculator Styles (For calculator.php) */
.calculator-section {
    padding: 20px 0; /* Add some padding around the calculator block */
}

.calculator-block {
    background-color: var(--card-bg); /* Use card background color */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* Increased max width for better visual */
    margin: 30px auto; /* Center the block within main-content */
    font-family: 'NotoSans', sans-serif;
}

.calculator-block h2 {
    text-align: center;
    color: var(--text-color); /* Use general text color for headings */
    margin-bottom: 20px;
    font-size: 26px; /* Adjusted font size */
    font-family: 'NotoSans', sans-serif;
}

.calculator-block p.description {
    text-align: center;
    color: #666; /* Specific grey for description */
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'NotoSans', sans-serif;
}

.form-group {
    margin-bottom: 18px;
}

.calculator-block label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color); /* Use general text color for labels */
    font-weight: bold;
    font-family: 'NotoSans', sans-serif;
}

.calculator-block input[type="number"],
.calculator-block select {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border: 1px solid var(--border-color); /* Use border color variable */
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none; /* Remove default browser styles */
    -moz-appearance: none;
    appearance: none;
    background-color: var(--main-bg);
    color: var(--text-color);
    font-family: 'NotoSans', sans-serif;
}

.calculator-block select {
    /* Custom arrow for select dropdown */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23343a40%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22%2F%3E%3C%2Fsvg%3E'); /* Arrow color matching text-color */
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.65em auto, 100%;
}

/* კალკულატორის კონკრეტული ღილაკის სტილები */
.calculator-block button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-yellow); /* ღილაკის ფონი ყვითელი */
    color: var(--text-color); /* ტექსტის ფერი მუქი ნაცრისფერი (ან შავი უკეთესი კონტრასტისთვის) */
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    font-family: 'NotoSans', sans-serif;
}

.calculator-block button:hover {
    background-color: #e0a800; /* ოდნავ მუქი ყვითელი hover-ისთვის */
    color: var(--text-color); /* ტექსტის ფერი hover-ზეც */
}

.calculator-block .results {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.calculator-block .results p {
    margin: 10px 0;
    font-size: 17px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    font-family: 'NotoSans', sans-serif;
}

.calculator-block .results p span:first-child {
    font-weight: bold;
}

.calculator-block .results p.total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-red); /* დააბრუნა წითელი ფერი "Total" შედეგისთვის */
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
    font-family: 'NotoSans', sans-serif;
}

.calculator-block .results p.error-message {
    color: var(--primary-red); /* Use primary-red for error messages */
    text-align: center;
    font-weight: normal;
    font-family: 'NotoSans', sans-serif;
}

/* Responsive Adjustments for Calculator */
@media (max-width: 768px) {
    .calculator-block {
        margin: 20px;
        padding: 20px;
    }
    .calculator-block h2 {
        font-size: 22px;
    }
    .calculator-block p.description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .calculator-block input[type="number"],
    .calculator-block select {
        width: 100%; /* Ensure full width on smaller screens */
        padding: 8px; /* Slightly reduce padding */
        font-size: 15px;
    }
    .calculator-block button {
        padding: 10px; /* Slightly reduce button padding */
        font-size: 16px;
    }
    .calculator-block .results p {
        font-size: 15px;
    }
    .calculator-block .results p.total {
        font-size: 18px;
        padding-top: 10px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .calculator-block {
        margin: 10px;
        padding: 15px;
    }
    .calculator-block h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .calculator-block p.description {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .calculator-block input[type="number"],
    .calculator-block select {
        padding: 7px;
        font-size: 14px;
    }
    .calculator-block button {
        padding: 8px;
        font-size: 15px;
        margin-top: 15px;
    }
    .calculator-block .results {
        margin-top: 20px;
        padding-top: 15px;
    }
    .calculator-block .results p {
        font-size: 14px;
        margin: 8px 0;
    }
    .calculator-block .results p.total {
        font-size: 16px;
        padding-top: 10px;
        margin-top: 10px;
    }
}

/* ======================================= */
/* ====== გამოწვევის გვერდის სტილები ====== */
/* ======================================= */

.challenge-main-container {
    padding: 30px; /* cite: 1 */
    background-color: var(--card-bg); /* თეთრი ფონი, როგორც მანქანის ბარათებს */
    color: var(--text-color); /* ძირითადი ტექსტის ფერი */
    border-radius: 10px; /* cite: 1 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* მსუბუქი ჩრდილი */
    max-width: 800px; /* კონტეინერის მაქსიმალური სიგანე */
    margin: 50px auto; /* ცენტრში გასწორება ჰორიზონტალურად და ზედა/ქვედა ზღვარი */
    text-align: center; /* cite: 1 */
    border: 1px solid var(--border-color); /* თხელი ჩარჩო */
}

.challenge-main-container h1 {
    color: var(--primary-yellow); /* ყვითელი სათაური, როგორც თქვენს დიზაინშია */
    margin-bottom: 25px; /* cite: 1 */
    font-size: 2.2em; /* cite: 1 */
    font-weight: bold; /* შრიფტის სისქე */
}

.challenge-info {
    font-size: 1.1em; /* cite: 1 */
    margin-bottom: 20px; /* cite: 1 */
    line-height: 1.6; /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
}

.challenge-progress-display {
    margin-top: 30px; /* cite: 1 */
    margin-bottom: 30px; /* cite: 1 */
    padding: 20px; /* cite: 1 */
    background-color: #f8f9fa; /* ოდნავ ღია ფონი პროგრესის ბლოკისთვის */
    border-radius: 8px; /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
}

.challenge-progress-display p {
    margin-bottom: 15px; /* cite: 1 */
    font-size: 1em; /* cite: 1 */
}

.challenge-progress-display .progress-bar-container {
    height: 20px; /* პროგრესის ზოლის სიმაღლე */
    width: 80%; /* პროგრესის ზოლის სიგანე */
    margin: 20px auto; /* ცენტრში გასწორება */
    background-color: var(--border-color); /* ზოლის ფონი (როცა პროგრესი არ არის) */
    border-radius: 10px; /* cite: 1 */
    overflow: hidden; /* აუცილებელია, რომ ზოლი არ გამოცდეს კონტეინერს */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* შიდა ჩრდილი */
}

.challenge-progress-display .progress-bar {
    height: 100%; /* cite: 1 */
    background: linear-gradient(to right, #4CAF50, #8BC34A); /* მწვანე გრადიენტი პროგრესისთვის */
    border-radius: 10px; /* cite: 1 */
    transition: width 0.7s ease-in-out; /* გლუვი ანიმაცია */
    display: flex; /* cite: 1 */
    align-items: center; /* cite: 1 */
    justify-content: flex-end; /* ტექსტი მარჯვნივ */
    padding-right: 10px; /* cite: 1 */
    color: #fff; /* ტექსტის ფერი პროგრესის ზოლზე */
    font-weight: bold; /* cite: 1 */
    font-size: 0.9em; /* cite: 1 */
    white-space: nowrap; /* ტექსტი ერთ ხაზზე */
}

.challenge-rewards {
    margin-top: 40px; /* cite: 1 */
    text-align: left; /* cite: 1 */
    border-top: 1px solid var(--border-color); /* cite: 1 */
    padding-top: 20px; /* cite: 1 */
}

.challenge-rewards h2 {
    color: var(--details-btn-bg); /* ლურჯი ფერი ჯილდოებისთვის (თქვენი ღილაკის ფერი) */
    margin-bottom: 15px; /* cite: 1 */
    font-size: 1.8em; /* cite: 1 */
    text-align: center; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
}

.challenge-rewards ul {
    list-style: none; /* cite: 1 */
    padding: 0; /* cite: 1 */
    font-size: 1.05em; /* cite: 1 */
}

.challenge-rewards ul li {
    background-color: var(--main-bg); /* ოდნავ ღია ფონი სიის ელემენტებისთვის */
    margin-bottom: 10px; /* cite: 1 */
    padding: 15px 20px; /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    display: flex; /* ხატულისა და ტექსტის გასასწორებლად */
    align-items: center; /* cite: 1 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* მსუბუქი ჩრდილი */
    color: var(--text-color); /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
}

.challenge-rewards ul li i {
    color: var(--primary-yellow); /* ყვითელი ხატულები */
    margin-right: 15px; /* cite: 1 */
    font-size: 1.4em; /* cite: 1 */
    min-width: 25px; /* ფიქსირებული სიგანე, რომ ხატულები არ ითამაშოს */
    text-align: center; /* cite: 1 */
}

/* სპეციალური ფერები შეტყობინებებისთვის, ვინაიდან თქვენი style.css არ შეიცავს მათ ცვლადებს */
.challenge-status.challenge-level-1 {
    color: var(--primary-yellow); /* ოქროსფერი (5 მანქანა) */
}

.challenge-status.challenge-level-2 {
    color: #ADD8E6; /* ღია ცისფერი (10 მანქანა) */
}

.challenge-status.challenge-level-3 {
    color: #90EE90; /* ღია მწვანე (20+ მანქანა) */
}

/* Challenge Page Specific Styles */
.challenge-section {
    padding: 20px; /* cite: 1 */
    background-color: var(--card-bg); /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* cite: 1 */
    margin-top: 20px; /* cite: 1 */
}

.challenge-section h2 {
    color: var(--text-color); /* cite: 1 */
    margin-bottom: 15px; /* cite: 1 */
    text-align: center; /* cite: 1 */
    font-size: 2em; /* cite: 1 */
}

.challenge-text {
    font-size: 1.1em; /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    line-height: 1.6; /* cite: 1 */
    margin-bottom: 30px; /* cite: 1 */
    text-align: center; /* cite: 1 */
}

.challenge-progress {
    width: 100%; /* cite: 1 */
    background-color: var(--border-color); /* cite: 1 */
    border-radius: 10px; /* cite: 1 */
    overflow: hidden; /* cite: 1 */
    margin-bottom: 30px; /* cite: 1 */
    height: 30px; /* cite: 1 */
    position: relative; /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
}

.challenge-progress-bar {
    height: 100%; /* cite: 1 */
    width: 0%; /* cite: 1 */
    background-color: red; /* cite: 1 */
    border-radius: 10px; /* cite: 1 */
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out; /* cite: 1 */
    display: flex; /* cite: 1 */
    align-items: center; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    color: white; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
    font-size: 0.9em; /* cite: 1 */
}

.challenge-progress-bar span {
    position: absolute; /* cite: 1 */
    left: 50%; /* cite: 1 */
    transform: translateX(-50%); /* cite: 1 */
    color: var(--text-color); /* cite: 1 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* cite: 1 */
}

.challenge-levels {
    display: flex; /* cite: 1 */
    justify-content: center; /* cite: 1 */
    gap: 20px; /* cite: 1 */
    margin-bottom: 30px; /* cite: 1 */
    flex-wrap: wrap; /* cite: 1 */
}

.challenge-level-card {
    background-color: var(--card-bg); /* cite: 1 */
    border: 1px solid var(--border-color); /* cite: 1 */
    border-radius: 8px; /* cite: 1 */
    padding: 20px; /* cite: 1 */
    text-align: center; /* cite: 1 */
    flex: 1; /* cite: 1 */
    min-width: 250px; /* cite: 1 */
    max-width: calc(33.33% - 20px); /* cite: 1 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* cite: 1 */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* cite: 1 */
    box-sizing: border-box; /* cite: 1 */
}

.challenge-level-card.completed {
    background-color: #e6ffe6; /* cite: 1 */
    border-color: #66cc66; /* cite: 1 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* cite: 1 */
    transform: translateY(-5px); /* cite: 1 */
}

.challenge-level-card h3 {
    color: var(--text-color); /* cite: 1 */
    margin-bottom: 10px; /* cite: 1 */
    font-size: 1.5em; /* cite: 1 */
}

.challenge-level-card p {
    color: var(--text-color); /* cite: 1 */
    font-size: 0.95em; /* cite: 1 */
}

.congratulations-message {
    background-color: #d4edda; /* cite: 1 */
    color: #155724; /* cite: 1 */
    border: 1px solid #c3e6cb; /* cite: 1 */
    border-radius: 5px; /* cite: 1 */
    padding: 15px; /* cite: 1 */
    margin-top: 20px; /* cite: 1 */
    text-align: center; /* cite: 1 */
    font-size: 1.2em; /* cite: 1 */
    font-weight: bold; /* cite: 1 */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .challenge-levels {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center them horizontally within the flex container */
        gap: 15px; /* Slightly reduce gap when stacked */
        /* Add horizontal padding to the flex container itself to prevent cards from touching screen edges */
        padding-left: 10px;
        padding-right: 10px;
        /* Ensure no extra margins are pushing it off center */
        margin-left: 0;
        margin-right: 0;
    }
    .challenge-level-card {
        max-width: 95%; /* Make cards take almost full width on smaller screens, leaving some padding */
        width: 100%; /* Ensure they try to fill the available space up to max-width */
        margin: 0 auto; /* Explicitly center each card within its available width */
    }
    .challenge-section h2 {
        font-size: 1.6em; /* cite: 1 */
    }
    .challenge-main-container {
        margin: 20px 10px; /* cite: 1 */
        padding: 20px; /* cite: 1 */
    }
    .challenge-main-container h1 {
        font-size: 1.8em; /* cite: 1 */
    }
    .challenge-info {
        font-size: 1em; /* cite: 1 */
    }
    .challenge-rewards h2 {
        font-size: 1.5em; /* cite: 1 */
    }
    .challenge-rewards ul li {
        padding: 10px 15px; /* cite: 1 */
        font-size: 0.95em; /* cite: 1 */
    }
    .challenge-progress-display .progress-bar-container {
        width: 95%; /* cite: 1 */
    }
}

@media (max-width: 576px) { /* Added a breakpoint for even smaller phones */
    .challenge-main-container {
        margin: 15px 5px; /* cite: 1 */
        padding: 15px; /* cite: 1 */
    }
    .challenge-main-container h1 {
        font-size: 1.6em; /* cite: 1 */
    }
    .challenge-info {
        font-size: 0.95em; /* cite: 1 */
    }
    .challenge-level-card {
        max-width: 98%; /* Slightly more width on very small screens, less padding */
        padding: 15px; /* cite: 1 */
    }
    .challenge-level-card h3 {
        font-size: 1.3em; /* cite: 1 */
    }
    .challenge-level-card p {
        font-size: 0.9em; /* cite: 1 */
    }
    .challenge-rewards h2 {
        font-size: 1.4em; /* cite: 1 */
    }
    .challenge-rewards ul li {
        padding: 8px 10px; /* cite: 1 */
        font-size: 0.9em; /* cite: 1 */
    }
    .challenge-rewards ul li i {
        font-size: 1.2em; /* cite: 1 */
        margin-right: 10px; /* cite: 1 */
    }
    .challenge-levels {
        padding-left: 5px; /* Reduce padding even further */
        padding-right: 5px;
    }
}

@media (max-width: 480px) {
    .challenge-main-container {
        margin: 10px; /* cite: 1 */
        padding: 15px; /* cite: 1 */
    }
    .challenge-main-container h1 {
        font-size: 1.5em; /* cite: 1 */
    }
    .challenge-info {
        font-size: 0.9em; /* cite: 1 */
    }
    .challenge-rewards h2 {
        font-size: 1.3em; /* cite: 1 */
    }
    .challenge-rewards ul li {
        padding: 8px 10px; /* cite: 1 */
        font-size: 0.9em; /* cite: 1 */
    }
    .challenge-rewards ul li i {
        font-size: 1.2em; /* cite: 1 */
        margin-right: 10px; /* cite: 1 */
    }
}

/* ===================================== */
/* Shared Form Styles for register_purchase.php */
/* ===================================== */

/* Main Content Area adjustments for scroll and reduced size */
.main-content {
    /* Calculate height based on viewport height, minus header/footer/other elements.
       Further reduced to '90px' for an even smaller block, aiming for minimal/no scroll.
       You MUST test this value (90px) on your actual site and adjust it.
       If it's still too large, reduce the value (e.g., to 70px or 60px). */
    max-height: calc(100vh - 90px);
    overflow-y: auto; /* Enables vertical scroll only when content overflows. */
    padding-right: 15px;
    box-sizing: border-box;
}

/* Specific styles for the form section (the card-like container) */
.form-section {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.registration-form .form-group {
    margin-bottom: 15px;
}

.registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9em;
}

.registration-form input[type="text"],
.registration-form input[type="number"],
.registration-form input[type="date"],
.registration-form input[type="tel"],
.registration-form input[type="file"],
.registration-form select {
    width: 100%;
    padding: 9px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.85em;
    color: var(--text-color);
    background-color: var(--main-bg);
    box-sizing: border-box;
}

.registration-form input[type="file"] {
    padding: 6px;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="number"]:focus,
.registration-form input[type="date"]:focus,
.registration-form input[type="tel"]:focus,
.registration-form input[type="file"]:focus,
.registration-form select:focus {
    border-color: var(--details-btn-bg);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Checkbox specific styles */
.registration-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.registration-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 7px;
    transform: scale(1.1);
}

.registration-form .checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.85em;
}

/* Form section title - "ინფორმაციის გაგზავნა" (Header above the form) */
.form-section-title {
    font-family: 'NotoSans', sans-serif;
    color: #28a745; /* **მწვანე ფერი form-section-title-ისთვის** */
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 1.6em;
    font-weight: bold;
}

/* Client Information text style */
.client-info-text {
    font-family: 'NotoSans', sans-serif;
    color: #28a745 !important; /* **გამოვიყენე !important, რათა სხვა სტილმა არ გადაფაროს მწვანე ფერი** */
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1em;
}


/* Submit Button - "ინფორმაციის გაგზავნა" */
.submit-button {
    font-family: 'NotoSans', sans-serif; /* ფონტი NotoSans ღილაკის ტექსტისთვის */
    background-color: var(--primary-red); /* **ღილაკის ფონი ყოველთვის წითელი იქნება** */
    color: var(--light-text-color); /* ტექსტის ფერი თეთრი */
    padding: 10px 20px;
    border: none; /* მოვხსენი ბორდერი */
    border-radius: 5px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: none; /* **მოვხსენი transition, რომ ფერი არ იცვალოს hover-ზე** */
    width: 100%;
    margin-top: 15px;
}

.submit-button:hover {
    background-color: var(--primary-red); /* **მაუსის მიტანისასაც წითელი დარჩება** */
    color: var(--light-text-color); /* ტექსტი თეთრი დარჩება */
    /* შეგიძლიათ დაამატოთ სხვა ეფექტი, მაგალითად: cursor: default; ან box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); */
}

/* Alert Messages (Success/Danger) */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Invalid field styling (for JS validation) */
.registration-form input.is-invalid,
.registration-form select.is-invalid {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* ===================================== */
/* Responsive adjustments for smaller screens */
/* ===================================== */
@media (max-width: 768px) {
    .main-content {
        max-height: calc(100vh - 70px);
        padding-right: 0;
    }

    .form-section {
        padding: 12px;
        margin: 12px auto;
        max-width: 98%;
    }

    .registration-form label,
    .registration-form input[type="text"],
    .registration-form input[type="number"],
    .registration-form input[type="date"],
    .registration-form input[type="tel"],
    .registration-form input[type="file"],
    .registration-form select,
    .client-info-text,
    .alert {
        font-size: 0.8em;
    }

    .form-section-title {
        font-size: 1.5em;
    }

    .submit-button {
        font-size: 0.95em;
        padding: 8px 15px;
    }

    .registration-form .checkbox-group input[type="checkbox"] {
        transform: scale(1.0);
    }
}

@media (max-width: 480px) {
    .main-content {
        max-height: calc(100vh - 50px);
    }

    .form-section {
        padding: 8px;
        margin: 8px auto;
    }
    
    .form-section-title {
        font-size: 1.3em;
    }

    .registration-form label,
    .registration-form input[type="text"],
    .registration-form input[type="number"],
    .registration-form input[type="date"],
    .registration-form input[type="tel"],
    .registration-form input[type="file"],
    .registration-form select,
    .client-info-text,
    .alert {
        font-size: 0.75em;
    }

    .submit-button {
        font-size: 0.9em;
        padding: 7px 12px;
    }
}
/* ===================================== */
/* End of Shared Form Styles for register_purchase.php */
/* ===================================== */

/* ======================================= */
/* საშუამავლო გვერდის სტილები - გაუმჯობესებული 3.2 */
/* ======================================= */

/* არსებული სტილები, რომლებიც გადმოიტანეთ */
.commission-form-section,
.commission-results-section {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    color: var(--text-color);
}

.commission-form-section h2,
.commission-results-section h2 {
    color: var(--text-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

.welcome-text {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.search-input-group {
    display: flex;
    flex-direction: column; /* Default to column for small screens */
    width: 100%;
    max-width: 700px; /* Increased max-width for better width */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Updated style for the textarea input - further reduced height */
.search-textarea {
    flex-grow: 1;
    width: 100%;
    padding: 12px 15px;
    border: none;
    font-family: 'NotoSans', sans-serif;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--card-bg);
    outline: none;
    resize: vertical; /* Allow vertical resizing */
    min-height: 40px; /* Further reduced minimum height */
    max-height: 80px; /* Further reduced maximum height */
    border-bottom: 1px solid var(--border-color); /* Separator between textarea and button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.search-textarea::placeholder {
    color: #888;
}

.search-button {
    background-color: #28a745; /* Green color for search button */
    color: var(--light-text-color);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'NotoSans', sans-serif;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 0 0 5px 5px;
}

.search-button:hover {
    background-color: #218838; /* Darker green on hover */
}

.search-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--button-bg);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: none;
    margin-top: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Display Styles */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.commission-item {
    background-color: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.commission-item:hover {
    transform: translateY(-3px);
}

.commission-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
}

.vin-code-display {
    color: var(--button-bg);
}

.car-name-display {
    text-align: right;
    font-size: 0.9em;
    color: #555;
}

.commission-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

.commission-amount-display {
    font-weight: bold;
    color: var(--text-color);
}

.commission-status-display {
    font-weight: bold;
}

.commission-error {
    color: var(--primary-red);
    font-weight: bold;
}

/* Corrected Colors for status */
.commission-paid {
    color: var(--primary-red); /* Red for "გადახდილია" (Taken/Gone) */
    font-weight: bold;
}

.commission-unpaid {
    color: #28a745; /* Green for "დასარიცხი" (To be received/Happiness) */
    font-weight: bold;
}

.commission-summary {
    margin-top: 25px;
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1.1em;
    color: var(--text-color);
}

.commission-summary p {
    margin-bottom: 8px;
    font-weight: bold;
}

.no-results-message {
    color: var(--text-color);
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
    background-color: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 20px;
}

/* ======================================= */
/* სესიის გასუფთავების ღილაკის სტილები */
/* ======================================= */
.clear-button {
    background-color: #6c757d; /* A neutral gray for a clear/reset action */
    color: var(--light-text-color);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'NotoSans', sans-serif;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 5px;
    margin-top: 15px; /* Add some space above the button */
    /* Ensure it doesn't stretch too wide on large screens by default, will be adjusted by media query */
    max-width: 700px; /* Match max-width of search input group for consistency */
    width: 100%; /* Default to full width for consistency in form section */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.clear-button:hover {
    background-color: #5a6268; /* Darker gray on hover */
}

.clear-button:active {
    background-color: #4e555b; /* Even darker on click */
}


/* Responsive adjustments */
@media (min-width: 769px) {
    .search-input-group {
        flex-direction: row;
    }
    .search-textarea {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        border-radius: 5px 0 0 5px;
    }
    .search-button {
        width: auto;
        border-radius: 0 5px 5px 0;
    }
    .clear-button {
        width: auto; /* Allow button to shrink on larger screens */
        max-width: 300px; /* Example max-width for clear button */
    }
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        max-width: 100%;
        box-shadow: none;
    }

    .search-textarea {
        border: 1px solid var(--border-color);
        border-radius: 5px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
        height: 60px; /* Adjusted height on small screens */
        max-height: 60px; /* Adjusted max-height on small screens */
    }

    .search-button {
        width: 100%;
        justify-content: center;
        border-radius: 5px;
    }

    .commission-item-header,
    .commission-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .car-name-display {
        text-align: left;
    }

    /* Clear button styles for small screens */
    .clear-button {
        width: 100%; /* Make full width on small screens */
        margin-top: 20px; /* More space on small screens */
        /* Ensure consistent padding and font-size */
        padding: 12px 15px; /* Slightly larger padding to match search button on mobile */
        font-size: 1em; /* Match search button font size on mobile */
    }
}

/* ========================================= */
/* Damage Report Page (report_damage.php) Styles */
/* ========================================= */

/* Ensure the main container and content area structure is consistent */
.container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding: 30px; /* Consistent padding */
    background-color: var(--main-bg);
    color: var(--text-color);
}

/* Header within main content */
.main-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color); /* Matches your existing borders */
    padding-bottom: 20px;
    text-align: center; /* Center align for the title */
}

.main-header h1 {
    color: var(--text-color);
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 0;
    font-family: 'NotoSans', sans-serif; /* Ensure your custom font is applied */
}

/* Section for the form itself */
.content-section.form-section {
    background-color: var(--card-bg); /* Use your defined card background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Soft shadow for card effect */
    margin-bottom: 30px;
}

.section-description {
    color: var(--text-color);
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
    font-family: 'NotoSans', sans-serif;
}

/* Form structure */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between form groups */
}

.form-group {
    margin-bottom: 0; /* Gap handles spacing */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 1em;
    font-family: 'NotoSans', sans-serif;
}

/* General input/select/textarea styling */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color); /* Your border color */
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width calculation */
    font-family: 'NotoSans', sans-serif;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--card-bg); /* Matches card background */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--button-bg); /* Highlight on focus */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Subtle blue shadow on focus */
}

textarea.form-control {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
    line-height: 1.5;
}

/* File input specific styling */
.form-control-file {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'NotoSans', sans-serif;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--card-bg);
    cursor: pointer; /* Indicate it's clickable */
}

/* Styling the file input button (browser-specific, may vary) */
.form-control-file::file-selector-button {
    background-color: var(--button-bg);
    color: var(--light-text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'NotoSans', sans-serif; /* Apply font to button too */
}

.form-control-file::file-selector-button:hover {
    background-color: var(--button-hover-bg);
}


/* Submit Button */
.btn.btn-primary.submit-btn {
    background-color: var(--button-bg);
    color: var(--light-text-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'NotoSans', sans-serif;
    width: fit-content; /* Allow button to size to its content */
    align-self: flex-end; /* Align to the right in a flex container */
}

.btn.btn-primary.submit-btn:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    border: 1px solid transparent;
    font-family: 'NotoSans', sans-serif;
}

.alert.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
    border-color: #c3e6cb;
}

.alert.danger {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red text */
    border-color: #f5c6cb;
}

.alert.warning {
    background-color: #fff3cd; /* Light yellow */
    color: #856404; /* Dark yellow text */
    border-color: #ffeeba;
}


/* ========================================= */
/* Admin Damage Reports Page (admin_damage_reports.php) Styles */
/* ========================================= */

/* Ensure the admin navbar matches your dashboard */
.navbar-dark.bg-dark {
    background-color: var(--sidebar-bg) !important; /* Use your sidebar background */
}

.navbar-brand {
    color: var(--light-text-color);
    font-family: 'NotoSans', sans-serif;
    font-weight: bold;
}

.navbar-text {
    color: var(--light-text-color) !important;
}

.btn-outline-light {
    color: var(--light-text-color);
    border-color: var(--light-text-color);
}

.btn-outline-light:hover {
    background-color: var(--light-text-color);
    color: var(--sidebar-bg);
}

/* Admin dashboard general elements */
.container.mt-4 h3 {
    color: var(--text-color);
    font-family: 'NotoSans', sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
}

hr {
    border-top: 1px solid var(--border-color);
    margin-bottom: 30px;
}

/* Admin Damage Reports Page (admin_damage_reports.php) Styles */
/* ეს არის ადმინ პანელის დაზიანების რეპორტების გვერდის სტილები. */
/* თუ ეს კოდი უკვე არსებობს თქვენს style.css-ში, უბრალოდ განაახლეთ ეს სექცია. */

/* Card styling for damage reports - ეს სექცია უკვე გაუმჯობესებული იყო, დავტოვებ, როგორც არის, რადგან კარგია. */
.damage-report-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.damage-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.damage-report-card h3 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.damage-report-card p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 8px;
}

.damage-report-card p strong {
    color: var(--primary-yellow);
    font-weight: bold;
}

.damage-report-card .status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    color: var(--light-text-color);
    display: inline-block;
    margin-top: 5px;
}

.status.pending {
    background-color: var(--primary-yellow);
}

.status.resolved {
    /* აქ უნდა იყოს მწვანე ფერი, რადგან --primary-green არ არსებობს root-ში, გამოვიყენოთ პირდაპირი hex */
    background-color: #28a745; /* მწვანე */
}

.status.rejected {
    background-color: var(--primary-red);
}

.damage-report-card .damage-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.damage-report-card .damage-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.damage-report-card .damage-images img:hover {
    transform: scale(1.05);
}

.damage-report-card .details-button {
    background-color: var(--details-btn-bg);
    color: var(--light-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    align-self: flex-end;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.damage-report-card .details-button:hover {
    background-color: var(--details-btn-hover-bg);
    transform: translateY(-1px);
}

/* Updated styling for the submit button - ensuring it's red */
.btn.btn-primary.submit-btn {
    background-color: var(--primary-red); /* წითელი ფონი */
    border-color: var(--primary-red); /* წითელი საზღვარი */
    color: var(--light-text-color); /* თეთრი ტექსტი */
    /* დარჩენილი სტილები ისე, როგორც უკვე გაქვთ */
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn.btn-primary.submit-btn:hover {
    background-color: #c82333; /* ოდნავ მუქი წითელი ჰოვერზე */
    border-color: #c82333;
    transform: translateY(-1px);
}


/* *** KEY FIX for input type="file" not showing/coloring correctly *** */
/* This directly targets the file input field for consistent styling */
.form-group input[type="file"].form-control-file {
    background-color: var(--card-bg); /* Use card background to ensure it's visible */
    border: 1px solid #28a745; /* მუდმივად მწვანე საზღვარი (პირდაპირი hex, რადგან --primary-green არ არსებობს) */
    color: var(--text-color); /* ტექსტის ფერი */
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Helps align the button and text within */
    align-items: center; /* Vertically center content */
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden; /* Crucial for long file names */
    position: relative; /* For ::before pseudo-element */
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Style for the "Choose File" button part of the input */
.form-group input[type="file"].form-control-file::file-selector-button {
    background-color: #28a745; /* მუდმივად მწვანე ღილაკი */
    color: var(--light-text-color); /* თეთრი ტექსტი */
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
}

.form-group input[type="file"].form-control-file::file-selector-button:hover {
    background-color: #218838; /* ოდნავ მუქი მწვანე ჰოვერზე */
}

/* Fallback/initial text for the file input field */
.form-group input[type="file"].form-control-file::before {
    content: "ფაილები არ არის არჩეული"; /* ნაგულისხმევი ტექსტი სანამ ფაილი აირჩევა */
    display: inline-block;
    color: var(--text-color);
    flex-grow: 1; /* Takes up remaining space */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; /* ... for long text */
    padding-left: 5px;
}

/* This will apply a hover effect to the entire input field */
.form-group input[type="file"].form-control-file:hover {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); /* Subtle green glow on hover */
}


/* *** KEY FIX for textarea (description) word spacing *** */
/* This specifically targets the description textarea to fix spacing */
.form-group textarea#description.form-control { /* Use ID for higher specificity if needed, or just .form-control */
    line-height: 1.6;
    padding: 12px;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 15px;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;

    /* These are the crucial lines to fix word spacing */
    text-align: left; /* Ensures text aligns left, preventing justification issues */
    word-spacing: normal; /* Resets any abnormal word spacing */
    letter-spacing: normal; /* Resets any abnormal letter spacing */
}

/* If you have a general .section-description for text blocks (retaining previous suggestion) */
.section-description {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1em;
    color: var(--text-color);
    text-align: left; /* Ensure this is also left-aligned if it's causing issues */
}


/* Responsive adjustments - Keep these as they are, they are good. */
@media (max-width: 768px) {
    .damage-report-card {
        padding: 20px;
    }
    .damage-report-card h3 {
        font-size: 1.3em;
    }
    .damage-report-card p {
        font-size: 0.95em;
    }
    .damage-report-card .damage-images img {
        width: 80px;
        height: 80px;
    }
    .btn.btn-primary.submit-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .damage-report-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    .damage-report-card h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .damage-report-card p {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    .damage-report-card .damage-images {
        gap: 8px;
        margin-top: 10px;
        justify-content: center;
    }
    .damage-report-card .damage-images img {
        width: 70px;
        height: 70px;
    }
    .damage-report-card .details-button {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }
    .btn.btn-primary.submit-btn {
        width: 100%;
    }
}
/* ==== UNIVERSAL MOBILE PATCH FOR SMALL SCREENS (≤400px) ==== */
@media (max-width: 400px) {
  /* Sidebar: make even smaller or hide text/icons */
  .sidebar {
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
  }
  .sidebar .sidebar-header,
  .sidebar .sidebar-footer {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }
  .sidebar .sidebar-header .logo {
    width: 34px !important;
    height: 34px !important;
  }
  .sidebar .sidebar-nav li a span,
  .sidebar .logout-btn span {
    display: none !important;
  }
  .sidebar .sidebar-nav li a,
  .sidebar .logout-btn {
    padding: 10px 6px !important;
    font-size: 1.1em;
    justify-content: center !important;
  }

  /* Main content area */
  .main-content {
    padding: 6px 2px !important;
    margin-left: 48px !important;
    width: calc(100% - 48px) !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  /* Header and titles */
  .main-header h1,
  .challenge-main-container h1,
  .calculator-block h2,
  .car-info h3 {
    font-size: 1.13em !important;
    word-break: break-word;
    line-height: 1.15;
  }

  /* Cards & containers */
  .car-card,
  .challenge-level-card,
  .calculator-block,
  .form-section,
  .car-details-info,
  .car-detail-section,
  .vin-search-section {
    max-width: 99vw !important;
    width: 100% !important;
    padding: 10px 6px !important;
    font-size: 0.97em !important;
    margin: 0 auto 10px auto !important;
    box-sizing: border-box !important;
  }

  /* Stacked layout for challenge/level cards */
  .challenge-levels {
    flex-direction: column !important;
    gap: 7px !important;
    padding: 0 !important;
  }

  /* General buttons and inputs */
  button,
  input,
  select {
    font-size: 0.99em !important;
    padding: 10px 6px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* Reduce icon sizes if needed */
  .sidebar .sidebar-nav li a .fas,
  .sidebar .logout-btn .fas {
    font-size: 1.2em !important;
    margin: 0 !important;
  }
}
@media (max-width: 600px) {
  .slider-main {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    position: relative;
    height: 220px !important; /* smaller height for mobile */
  }
  .slider-arrow {
    font-size: 2.1em !important;
    padding: 8px 14px !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 11;
  }
  .slider-arrow.prev-arrow {
    left: 3px !important;
  }
  .slider-arrow.next-arrow {
    right: 3px !important;
  }
}
@media (max-width: 600px) {
  .modal-controls, .plus-minus-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;         /* Space between + and - */
    margin: 14px 0 !important;
  }
  .modal-controls button, .plus-minus-wrapper button, 
  .modal-controls .plus-btn, .modal-controls .minus-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    font-size: 2em !important;
    font-weight: bold !important;
    background: var(--primary-yellow) !important;
    color: var(--sidebar-bg) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.11);
    transition: background 0.22s;
  }
  .modal-controls button:active, .plus-minus-wrapper button:active {
    background: #e0a800 !important;
  }
}
@media (max-width: 600px) {
  .slider-main {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 12 !important;
    font-size: 2em !important;
    padding: 8px 12px !important;
    background: rgba(0,0,0,0.14) !important;
    border-radius: 50% !important;
  }
  .slider-arrow.prev-arrow {
    left: 0 !important;
  }
  .slider-arrow.next-arrow {
    right: 0 !important;
  }
}
@media (max-width: 768px) {
  .slider-main {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    height: 220px !important; /* or whatever works best for your images */
  }
  .slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 11 !important;
    font-size: 2.1em !important;
    padding: 8px 16px !important;
    background: rgba(0,0,0,0.11) !important;
    border-radius: 50% !important;
    opacity: 0.85 !important;
  }
  .slider-arrow.prev-arrow {
    left: -6px !important;
  }
  .slider-arrow.next-arrow {
    right: -6px !important;
  }
  .current-car-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}
@media (max-width: 375px) {
  .slider-main {
    height: 150px !important;    /* or even 120px, adjust to your liking */
  }
  .slider-arrow {
    font-size: 1.65em !important;
    padding: 7px 9px !important;
  }
  .slider-arrow.prev-arrow {
    left: -16px !important;
  }
  .slider-arrow.next-arrow {
    right: -16px !important;
  }
}
@media (max-width: 400px) {
  .slider-main {
    position: relative !important;
    width: 100vw !important;
    left: -10px !important;
    max-width: 100vw !important;
    margin: 0 calc(-1 * (100vw - 100%) / 2) !important; /* removes any body margin padding */
    box-sizing: border-box !important;
  }
  .slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 12 !important;
    font-size: 1.6em !important;
    padding: 7px 8px !important;
    background: rgba(0,0,0,0.10) !important;
    border-radius: 50% !important;
    opacity: 0.94 !important;
  }
  .slider-arrow.prev-arrow {
    left: -18px !important;
  }
  .slider-arrow.next-arrow {
    right: -18px !important;
  }
  .current-car-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

.highlight-opening-date {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 16px 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 24px 0 rgba(39, 174, 96, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: popIn 0.8s cubic-bezier(.23,1.09,.77,1.01);
}

.highlight-opening-date .fas {
    color: #27ae60;
    font-size: 2.2em;
    margin-bottom: 6px;
    animation: popIn 0.8s cubic-bezier(.23,1.09,.77,1.01);
}

.highlight-opening-date .highlight-date {
    display: inline-block;
    background: #fff;
    color: #18a95c;
    font-weight: bold;
    font-size: 1.45em;
    padding: 6px 30px;
    border-radius: 18px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.11);
    letter-spacing: 1.2px;
    animation: pulse 1.3s infinite ease-in-out;
}

.highlight-opening-date .opening-msg {
    color: #005a3a;
    font-size: 1em;
    margin-top: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0;}
    80% { transform: scale(1.06); opacity: 1;}
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.19); }
    50% { box-shadow: 0 0 12px 4px rgba(39, 174, 96, 0.32); }
}




/*********************/



.calculator-card {
    background: var(--card-bg, #fff);
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(0,0,0,0.05);
    padding: 32px 26px 24px 26px;
    margin-bottom: 36px;
    border: none;
    width: 100%;
    max-width: 780px;    /* შეცვლილია! */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* აუცილებელია! */
}
.calculator-card h2 {
    font-size: 1.35rem;
    margin-bottom: 28px;
    font-weight: 700;
    color: var(--text-color, #343a40);
    letter-spacing: 1px;
    text-align: center;
}

.car-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
    justify-items: center;
    align-items: stretch;
    background: none;
    border-radius: 13px;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* აუცილებელია! */
}

.car-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    border: none;
    border-radius: 12px;
    width: 100%;
    min-width: 0;
    min-height: 110px;
    cursor: pointer;
    padding: 10px 5px 6px 5px;
    transition: box-shadow 0.15s, background 0.15s;
    font-family: inherit;
    box-shadow: none;
    margin: 0;
    box-sizing: border-box; /* აუცილებელია! */
}
.car-type-option.selected,
.car-type-option:hover {
    background: var(--main-bg, #f8f9fa);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
}
.car-type-option input[type=radio] {
    display: none;
}
.car-type-icon {
    margin-bottom: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.car-type-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.2s;
}
.car-type-option.selected .car-type-icon img,
.car-type-option:hover .car-type-icon img {
    filter: grayscale(0%) brightness(1);
}
.car-type-label {
    font-size: 1.05rem;
    color: var(--text-color, #343a40);
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-top: 1px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* აუცილებელია! */
}
.form-row > * {
    flex: 1;
    min-width: 180px;
    max-width: 100%;
    box-sizing: border-box; /* აუცილებელია! */
}
.form-select, .form-control, .btn-primary {
    border-radius: 8px !important;
    font-size: 1rem;
    font-family: inherit;
}
.form-select, .form-control {
    padding: 10px 13px;
    border: 1px solid var(--border-color, #e9ecef);
    background: var(--main-bg, #f8f9fa);
    margin-bottom: 0;
    outline: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-yellow, #FFC107);
    box-shadow: 0 0 0 1.5px rgba(255, 193, 7, 0.35);
}
.btn-primary {
    background: var(--primary-yellow, #FFC107);
    color: var(--sidebar-bg, #212529);
    border: none;
    padding: 12px 32px;
    font-weight: 700;
    transition: background .15s;
    cursor: pointer;
    box-shadow: 0 2px 7px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover {
    background: #e0a800;
    color: var(--sidebar-bg, #212529);
}

.results-table {
    width: 100%;
    max-width: 780px;    /* შეცვლილია! */
    margin: 18px auto 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg, #fff);
    border-radius: 13px;
    box-shadow: 0 4px 14px 0 rgba(0,0,0,0.03);
    overflow: hidden;
    font-size: 1rem;
    box-sizing: border-box; /* აუცილებელია! */
}
.results-table th, .results-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    text-align: left;
}
.results-table th {
    background: var(--main-bg, #f8f9fa);
    font-weight: 700;
    color: var(--text-color, #343a40);
    font-size: 1.09rem;
}
.results-table tr:last-child td {
    border-bottom: none;
}
.results-table tr.cheapest {
    background: #fffbe6;
    border-left: 4px solid var(--primary-yellow, #FFC107);
}
.results-table tr:hover td {
    background: var(--main-bg, #f8f9fa);
    transition: background 0.15s;
}

/* ------ Responsive ------ */
@media (max-width: 992px) {
    .calculator-card, .results-table {
        max-width: 97vw;
        padding-left: 6px;
        padding-right: 6px;
    }
    .car-type-selector {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 11px;
    }
    .car-type-icon {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 8px;
    }
    .form-row > * {
        min-width: unset;
        width: 100%;
    }
    .calculator-card, .results-table {
        padding: 8px 2px 8px 2px;
    }
}
@media (max-width: 480px) {
    .calculator-card, .results-table {
        max-width: 100vw;
        padding-left: 1px;
        padding-right: 1px;
    }
    .car-type-selector {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 2px;
    }
    .car-type-option {
        min-height: 54px;
        padding: 3px 1px 3px 1px;
    }
    .car-type-icon {
        width: 18px;
        height: 18px;
    }
    .car-type-label {
        font-size: 0.8rem;
    }
    .btn-primary {
        padding: 7px 8px;
        font-size: 0.92rem;
    }
}

@media (min-width: 1440px) {
    .car-listings {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
        max-width: 1600px;
        padding: 0 40px;
    }
}





