/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Layout Styles */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.auth-layout {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
}

.sidebar-nav {
    flex: 1;
    padding: 2rem 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-left-color: #d4af37;
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border-left-color: #d4af37;
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

.user-role {
    font-size: 0.9rem;
    color: #999;
    text-transform: capitalize;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.topbar {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    padding: 0.5rem;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: #666;
    font-size: 0.9rem;
}

.logout-form-mobile {
    display: none;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
    color: #000;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-outline:hover {
    background: #6c757d;
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn .btn-icon {
    margin-right: 0.5rem;
    display: inline-block;
    width: auto;
    height: auto;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    transform: none !important;
}

/* Auth Styles */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #d4af37;
}

.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.demo-credentials {
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    line-height: 1.4;
}

/* Dashboard Styles */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #d4af37;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.stat-link:hover {
    color: #f1c40f;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.action-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.action-content p {
    color: #666;
    font-size: 0.9rem;
}

.activity-feed {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #999;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.status-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-online {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-offline {
    background: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.status-warning {
    background: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.status-content {
    flex: 1;
}

.status-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.status-description {
    font-size: 0.9rem;
    color: #666;
}

/* ===== VEHICLE MANAGEMENT STYLES ===== */

/* Vehicle Management Pages */
.vehicles-page, .vehicle-form-page {
    max-width: 1200px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.header-content h1.page-title {
    color: #d4af37;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.header-content .page-subtitle {
    color: #666;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Filters */
.filters-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    color: #333;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 0.875rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    min-width: 120px;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Vehicle Table */
.vehicles-table-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vehicles-table {
    width: 100%;
    border-collapse: collapse;
}

.vehicles-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicles-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.vehicle-row:hover {
    background: rgba(212, 175, 55, 0.05);
}

.vehicle-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.vehicle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-count-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 0.75rem;
}

.vehicle-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vehicle-subtitle {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.vehicle-vin,
.vehicle-mileage {
    color: #999;
    font-size: 0.75rem;
}

.price-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}

.price-type,
.price-contact {
    color: #666;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft { background: #6c757d; color: #fff; }
.status-available { background: #28a745; color: #fff; }
.status-pending { background: #ffc107; color: #000; }
.status-sold { background: #17a2b8; color: #fff; }
.status-archived { background: #343a40; color: #fff; }

.featured-badge {
    background: #d4af37;
    color: #000;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.date-display {
    color: #333;
    font-size: 0.875rem;
}

.time-display {
    color: #999;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-section {
    max-width: 800px;
}

.form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h3 {
    color: #d4af37;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.card-header p {
    color: #666;
    margin: 0;
    font-size: 0.875rem;
}

.card-body {
    padding: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    color: #333;
    font-size: 0.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

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

.form-help {
    color: #999;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    padding: 0.5rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.success-message.show {
    display: block;
}

/* Slug Input with Status Indicator */
.input-with-status {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-status input {
    flex: 1;
    padding-right: 3rem;
}

.slug-status {
    position: absolute;
    right: 1rem;
    font-size: 1.25rem;
    pointer-events: none;
}

.slug-status.checking {
    color: #6c757d;
    animation: pulse 1.5s infinite;
}

.slug-status.available {
    color: #28a745;
    font-weight: bold;
}

.slug-status.unavailable {
    color: #dc3545;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #d4af37;
    border-color: #d4af37;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    justify-content: flex-start;
    border-top: 1px solid #e0e0e0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #333;
    margin: 0 0 1rem 0;
}

.warning-text {
    color: #dc3545;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Pagination */
.pagination-section {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn,
.pagination-number {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    color: #d4af37;
}

.pagination-current {
    padding: 0.5rem 1rem;
    background: #d4af37;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .topbar {
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .user-greeting {
        display: none;
    }
    
    .logout-form-mobile {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    /* Vehicle Management Mobile */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .vehicles-table-container {
        overflow-x: auto;
    }
    
    .vehicles-table {
        min-width: 800px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* ===== CONTACTS PAGE ===== */
.contacts-page {
    padding: 0;
}

.contacts-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contacts-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.contact-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-card.new {
    border-left: 4px solid #10b981;
}

.contact-card.contacted {
    border-left: 4px solid #3b82f6;
}

.contact-card.in_progress {
    border-left: 4px solid #f59e0b;
}

.contact-card.resolved {
    border-left: 4px solid #6b7280;
}

.contact-card.archived {
    border-left: 4px solid #9ca3af;
    opacity: 0.7;
}

.contact-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.contact-status,
.contact-priority,
.contact-source {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-status.status-new {
    background: #dcfce7;
    color: #166534;
}

.contact-status.status-contacted {
    background: #dbeafe;
    color: #1e40af;
}

.contact-status.status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.contact-status.status-resolved {
    background: #f3f4f6;
    color: #374151;
}

.contact-status.status-archived {
    background: #f9fafb;
    color: #6b7280;
}

.contact-priority.priority-urgent {
    background: #fee2e2;
    color: #dc2626;
}

.contact-priority.priority-high {
    background: #fef3c7;
    color: #d97706;
}

.contact-priority.priority-medium {
    background: #dbeafe;
    color: #2563eb;
}

.contact-priority.priority-low {
    background: #f3f4f6;
    color: #6b7280;
}

.contact-source {
    background: #f8fafc;
    color: #475569;
}

.contact-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.contact-details {
    margin-bottom: 15px;
}

.contact-details > div {
    margin-bottom: 5px;
    font-size: 14px;
    color: #6b7280;
}

.contact-details strong {
    color: #374151;
    font-weight: 500;
}

.contact-message {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.contact-message strong {
    color: #374151;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.contact-message p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.related-vehicle {
    margin-bottom: 15px;
    padding: 10px;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 14px;
}

.related-vehicle strong {
    color: #1e40af;
}

.contact-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.email-btn {
    background: #10b981 !important;
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.email-btn:hover {
    background: #059669 !important;
}

.phone-btn {
    background: #3b82f6 !important;
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.phone-btn:hover {
    background: #2563eb !important;
}

.status-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #111827;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 20px;
}

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

/* ===== REQUESTS PAGE ===== */
.requests-page {
    padding: 0;
}

.requests-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.requests-grid {
    display: grid;
    gap: 24px;
    padding: 24px;
}

.request-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.request-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.request-card.pending {
    border-left: 5px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.request-card.under_review {
    border-left: 5px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.request-card.approved {
    border-left: 5px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.request-card.rejected {
    border-left: 5px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.request-card.contacted {
    border-left: 5px solid #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

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

.request-status,
.request-priority,
.request-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.request-status.status-under_review {
    background: #dbeafe;
    color: #1e40af;
}

.request-status.status-approved {
    background: #dcfce7;
    color: #166534;
}

.request-status.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.request-status.status-contacted {
    background: #f3f4f6;
    color: #374151;
}

.request-priority.priority-urgent {
    background: #fee2e2;
    color: #dc2626;
}

.request-priority.priority-high {
    background: #fed7aa;
    color: #ea580c;
}

.request-priority.priority-medium {
    background: #dbeafe;
    color: #2563eb;
}

.request-priority.priority-low {
    background: #f3f4f6;
    color: #6b7280;
}

.request-type {
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
}

.vehicle-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.vehicle-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.asking-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid #a7f3d0;
}

.submitter-info {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.submitter-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.submitter-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border-radius: 50%;
    color: white;
}

.submitter-name {
    font-size: 16px;
    color: #111827;
    margin-bottom: 6px;
    display: block;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-email,
.contact-phone {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-email:hover,
.contact-phone:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.vehicle-specs {
    margin-bottom: 20px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.spec-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.spec-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.spec-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.spec-value {
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.request-description {
    margin-bottom: 20px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.description-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.description-icon {
    font-size: 16px;
}

.description-header strong {
    color: #374151;
    font-weight: 600;
}

.request-description p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #1d4ed8;
}

.request-meta {
    margin-bottom: 20px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.meta-text {
    font-size: 13px;
    color: #4b5563;
}

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.request-actions .btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.request-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== SUBSCRIBERS PAGE ===== */
.subscribers-page {
    padding: 0;
}

.subscribers-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.subscribers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
}

.subscriber-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscriber-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.subscriber-card.active {
    border-left: 5px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.subscriber-card.inactive {
    border-left: 5px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    opacity: 0.8;
}

.subscriber-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subscriber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.subscriber-status,
.subscriber-source,
.subscriber-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscriber-status.status-active {
    background: #dcfce7;
    color: #166534;
}

.subscriber-status.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.subscriber-source {
    background: #f1f5f9;
    color: #475569;
}

.subscriber-type {
    background: #eff6ff;
    color: #1e40af;
}

.email-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.email-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border-radius: 50%;
    color: white;
}

.email-details {
    flex: 1;
}

.email-address {
    margin-bottom: 4px;
}

.email-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

.email-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.email-domain {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.subscriber-stats {
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s;
}

.stat-item:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.stat-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.stat-details {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}

.preferences-section {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #0ea5e9;
}

.preferences-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.preferences-icon {
    font-size: 14px;
}

.preferences-header strong {
    color: #0c4a6e;
    font-size: 13px;
}

.preferences-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preference-tag {
    background: #0ea5e9;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.subscriber-meta {
    margin-bottom: 16px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.meta-text {
    font-size: 11px;
    color: #4b5563;
}

.subscriber-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.primary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.secondary-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.subscriber-actions .btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.subscriber-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.selection-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
}

.selection-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.selection-checkbox label {
    cursor: pointer;
}

.bulk-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.bulk-actions-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
}

.selected-count {
    font-weight: 600;
    color: #374151;
}

.bulk-buttons {
    display: flex;
    gap: 8px;
}

.bulk-buttons .btn {
    font-size: 13px;
    padding: 6px 12px;
}

/* Coming Soon Styles */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-coming-soon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-coming-soon:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.coming-soon-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.coming-soon-modal {
    max-width: 700px;
    width: 95%;
}

.coming-soon-content {
    text-align: center;
}

.feature-preview {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-preview h4 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
}

.feature-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.feature-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text span {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.cta-section {
    padding: 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 12px;
    color: white;
}

.cta-text h5 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.cta-text p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background: white;
    color: #8b5cf6;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-cta:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Requests Mobile Responsive */
@media (max-width: 768px) {
    .requests-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
    }
    
    .request-card {
        padding: 20px;
    }
    
    .vehicle-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .primary-actions {
        flex-direction: column;
    }
    
    .status-actions {
        justify-content: center;
    }
    
    /* Subscribers Mobile Styles */
    .subscribers-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 16px;
    }
    
    .subscriber-card {
        padding: 16px;
    }
    
    .subscriber-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .primary-actions {
        flex-direction: column;
    }
    
    .secondary-actions {
        justify-content: center;
    }
    
    .bulk-actions-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Photo Upload Styles */
.photo-upload-section {
    margin-top: 1rem;
}

.upload-area {
    border: 2px dashed #d4af37;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #b8960f;
    background: #fff8e6;
    transform: scale(1.01);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.upload-placeholder h4 {
    color: #333;
    margin: 0;
    font-size: 1.25rem;
}

.upload-placeholder p {
    color: #666;
    margin: 0;
}

.upload-specs {
    font-size: 0.75rem;
    color: #999;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.photo-item:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
}

.photo-actions .btn-icon {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 0;
}

.photo-actions .btn-icon:hover {
    background: #fff;
    transform: scale(1.1);
}

.photo-actions .btn-icon.btn-danger {
    background: rgba(220,53,69,0.9);
    color: white;
}

.photo-actions .btn-icon.btn-danger:hover {
    background: #dc3545;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem;
}

.photo-caption input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem;
    outline: none;
}

.photo-caption input::placeholder {
    color: rgba(255,255,255,0.5);
}

.photo-caption input:focus {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.upload-progress {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f1c40f);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}