body {
    background: #f5f6f8;
}


.navbar {
    min-height: 66px;
}

.navbar-brand {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.nav-link:hover,
.nav-link:focus {
    color: #000;
}

.dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    border-radius: 8px;
    font-size: 14px;
    padding: 9px 12px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 16px;
        padding-bottom: 8px;
    }

    .navbar-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 0;
    }
}


.admin-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.admin-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}

.admin-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.admin-header p {
    margin: 8px 0 0;
    color: #777;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
}


/* Stats */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f2f2f2;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.stat-label {
    color: #777;
    font-size: 14px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 3px;
}


/* Main layout */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #eee;
}

.panel-header.compact {
    border-bottom: 0;
    padding-bottom: 14px;
}

.panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.panel-header p {
    margin: 4px 0 0;
    color: #888;
    font-size: 14px;
}


/* Table */

.admin-table th {
    padding: 14px 24px;
    background: #fafafa;
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #eee;
}

.admin-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.customer-name {
    font-weight: 600;
}

.customer-email {
    color: #888;
    font-size: 13px;
    margin-top: 2px;
}

.type-badge {
    display: inline-block;
    padding: 5px 9px;
    background: #f2f2f2;
    border-radius: 8px;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-new {
    background: #eaf7ee;
    color: #237a3b;
}

.status-read {
    background: #f1f1f1;
    color: #666;
}


/* Sidebar actions */

.action-stack {
    padding: 0 14px 14px;
}

.action-item {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.action-item:hover {
    background: #f7f7f7;
}

.action-button {
    border: 0;
    background: transparent;
    text-align: left;
}

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f2f2f2;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.action-icon.danger {
    background: #fff0f0;
}

.action-item strong {
    display: block;
    font-size: 14px;
}

.action-item span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.action-arrow {
    color: #aaa;
    font-size: 13px;
}


/* Responsive */

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .admin-shell {
        padding: 20px 14px;
    }

    .admin-header {
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-header-actions .btn {
        flex: 1;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }

    .panel-header {
        padding: 18px;
    }

    .admin-table th,
    .admin-table td {
        padding: 14px 16px;
    }
}


.panel-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.submission-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.submission-details strong {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 4px;
}

.submission-details p {
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}

.submission-message {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .submission-details {
        grid-template-columns: 1fr;
    }

    .submission-message {
        grid-column: auto;
    }
}

.vehicles-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px;
}

.vehicles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.vehicles-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.vehicles-header p {
    margin: 6px 0 0;
    color: #777;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
}

.vehicle-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f2f2f2;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vehicle-content {
    padding: 20px;
}

.vehicle-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.vehicle-year {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 3px;
}

.vehicle-top h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.vehicle-top p {
    margin: 4px 0 0;
    color: #777;
    font-size: 14px;
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.vehicle-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.vehicle-info div:last-child {
    grid-column: 1 / -1;
}

.vehicle-info span {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}

.vehicle-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.vehicle-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vehicle-actions .btn {
    border-radius: 9px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .vehicles-section {
        padding: 20px 14px;
    }

    .vehicles-header {
        align-items: stretch;
        flex-direction: column;
    }

    .vehicles-header .btn {
        width: 100%;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-top {
        flex-direction: column;
    }

    .vehicle-price {
        font-size: 18px;
    }
}
.vehicle-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.vehicle-card-link:hover {
    color: inherit;
}

.vehicle-actions {
    padding: 0 20px 20px;
}

.edit-vehicle-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.edit-vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
}

.back-link:hover {
    color: #000;
}

.edit-vehicle-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.edit-vehicle-header p {
    margin: 6px 0 0;
    color: #777;
}

.edit-vehicle-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.edit-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
}

.edit-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.edit-panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.edit-panel-header p {
    margin: 4px 0 0;
    color: #888;
    font-size: 13px;
}

.edit-panel-body {
    padding: 24px;
}

.edit-panel .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.edit-panel .form-control,
.edit-panel .form-select {
    min-height: 44px;
    border-radius: 10px;
    border-color: #ddd;
}

.edit-panel textarea.form-control {
    min-height: 150px;
}

.edit-panel .form-control:focus,
.edit-panel .form-select:focus {
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.current-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.current-image {
    width: 220px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.current-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .edit-vehicle-page {
        padding: 20px 14px;
    }

    .edit-vehicle-header {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-header-actions .btn {
        width: 100%;
    }

    .edit-panel-header,
    .edit-panel-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .current-image {
        width: 100%;
    }

    .edit-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

