/* Vehicle Type Cards */
.vehicle-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.vehicle-type-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.vehicle-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.vehicle-type-icon {
    color: var(--primary-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-type-icon img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.vehicle-type-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vehicle-type-license {
    font-size: 13px;
    color: var(--primary-text);
    font-weight: 600;
    margin: 0;
}

.vehicle-type-weight {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

/* Vehicle Cards Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.vehicle-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vehicle-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-gray);
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.05);
}

.vehicle-card-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.vehicle-card-favorite:hover {
    background-color: white;
    transform: scale(1.1);
}

.vehicle-card-favorite svg {
    color: var(--text-secondary);
}

.vehicle-card-favorite.active svg {
    fill: var(--danger-color);
    color: var(--danger-color);
}

.vehicle-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-button);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.vehicle-card-content {
    padding: 20px;
}

.vehicle-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vehicle-card-category {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--primary-text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.vehicle-card-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-wrap: wrap;
}

.vehicle-card-spec {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-card-spec::before {
    content: '•';
    font-weight: bold;
}

.vehicle-card-spec:first-child::before {
    content: '';
}

.vehicle-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vehicle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.vehicle-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-text);
}

.vehicle-card-cta {
    background-color: var(--primary-button);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.vehicle-card-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Filters */
.filters {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-input,
.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.btn-filter {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter:hover {
    background-color: var(--primary-button);
    color: white;
    border-color: var(--primary-color);
}

.btn-reset {
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-reset:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--danger-color);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-text);
    border: 1px solid var(--primary-color);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.license-table {
    width: 100%;
    font-size: 13px;
}

.license-table tr {
    border-bottom: 1px solid var(--border-color);
}

.license-table tr:last-child {
    border-bottom: none;
}

.license-table td {
    padding: 8px 0;
    color: var(--text-secondary);
}

.license-table td:first-child {
    color: var(--text-primary);
    padding-right: 16px;
}

.license-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-text);
}

.tooltip-note {
    margin: 12px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Manufacturer Search Dropdown */
.manufacturer-search-wrapper {
    position: relative;
}

.manufacturer-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    box-sizing: border-box;
}

.manufacturer-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.1);
}

.manufacturer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: none;
    margin-top: -1px;
}

.manufacturer-dropdown.active {
    display: block;
}

.manufacturer-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.manufacturer-option:hover {
    background: var(--bg-secondary);
    color: var(--primary-text);
}

.manufacturer-option.selected {
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary-text);
    font-weight: 600;
}

/* Dropdown Search Box */
.dropdown-search-box {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-search-input:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

/* Selected Manufacturer Tag */
.selected-manufacturer {
    margin-top: 12px;
}

.manufacturer-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-button);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.manufacturer-tag-remove {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
}

.manufacturer-tag-remove:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .vehicle-type-card {
        padding: 16px 12px;
    }

    .vehicle-type-icon img {
        width: 90px;
        height: 90px;
    }

    .vehicle-type-name {
        font-size: 14px;
    }

    .vehicle-type-license {
        font-size: 12px;
    }

    .vehicle-type-weight {
        font-size: 12px;
    }

    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .vehicle-card-specs {
        font-size: 13px;
        gap: 10px;
    }

    .vehicle-card-price {
        font-size: 19px;
    }

    .vehicle-card-content {
        padding: 15px;
    }

    .vehicle-card-image {
        height: 170px;
    }

    .vehicle-card-title {
        font-size: 16px;
    }
}

