#dealer-finder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.dealer-finder-header {
    text-align: center;
    margin-bottom: 30px;
}

.dealer-finder-header h2 {
    color: #333;
    font-size: 28px;
    margin: 0;
}

.dealer-finder-filters {
    background-color: #ffd4b3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-dropdown {
    min-width: 200px;
}

.filter-dropdown select {
    width: 100%;
    padding: 12px 16px;
    background-color: #8b7355;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.filter-dropdown select:focus {
    outline: none;
    background-color: #7a6249;
}

.filter-dropdown select option {
    background-color: #8b7355;
    color: white;
}

.dealers-table-container {
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dealers-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    min-width: 800px;
}

.dealers-table th,
.dealers-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dealers-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dealers-table tbody tr:hover {
    background-color: #f5f5f5;
}

.dealers-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.dealers-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.no-dealers {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 33% { content: "..."; }
    34%, 66% { content: "...."; }
    67%, 100% { content: "....."; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #dealer-finder-container {
        padding: 10px;
    }
    
    .dealer-finder-header h2 {
        font-size: 24px;
    }
    
    .dealer-finder-filters {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    
    .filter-dropdown {
        min-width: 250px;
    }
    
    .dealers-table {
        font-size: 14px;
    }
    
    .dealers-table th,
    .dealers-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .dealers-table {
        font-size: 12px;
    }
    
    .dealers-table th,
    .dealers-table td {
        padding: 6px;
    }
    
    .dealer-finder-header h2 {
        font-size: 20px;
    }
}

/* Admin Styles */
.button-danger {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.button-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.dealer-item {
    transition: all 0.3s ease;
}

.dealer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dealer-info {
    line-height: 1.6;
}

.dealer-actions {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* Form Styles */
.form-table th {
    width: 150px;
    padding: 10px;
}

.form-table td {
    padding: 10px;
}

.form-table input[type="text"],
.form-table textarea,
.form-table select {
    width: 100%;
    max-width: 400px;
}

.form-table textarea {
    resize: vertical;
}

/* Loading and Error States */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .dealers-table-container {
        overflow-x: scroll;
    }
    
    .dealers-table {
        white-space: nowrap;
    }
}