/* CarConnect Admin CSS - Zentralisierte Version */

/* Dashboard Haupt-Layout und Komponenten */
.carconnect-dashboard {
    max-width: 1400px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    overflow: hidden;
    min-height: 80vh;
}
.carconnect-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    padding: 24px 40px 32px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.1);
}
.carconnect-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(59, 130, 246, 0.05));
    z-index: -1;
}
.carconnect-logo {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
    transition: transform 0.3s ease;
}
.carconnect-logo:hover {
    transform: scale(1.02);
}
.carconnect-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #374151;
    position: relative;
    line-height: 1.2;
    padding-bottom: 8px;
}
.carconnect-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}
.carconnect-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 40px;
}
.carconnect-nav .nav-tab-wrapper {
    display: flex;
    margin: 0;
    border: none;
    background: none;
    gap: 8px;
}
.carconnect-nav .nav-tab {
    padding: 20px 32px;
    border: none;
    background: transparent;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    position: relative;
    overflow: hidden;
}
.carconnect-nav .nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.carconnect-nav .nav-tab:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}
.carconnect-nav .nav-tab.nav-tab-active {
    color: #2563eb;
    background: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.carconnect-nav .nav-tab.nav-tab-active::before {
    transform: scaleX(1);
}
.carconnect-content {
    background: white;
    padding: 40px;
    min-height: 600px;
}
.carconnect-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.carconnect-section {
    margin-bottom: 48px;
}
.carconnect-section h2 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #f3f4f6;
    position: relative;
}
.carconnect-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    border-radius: 2px;
}

/* Dashboard Gitter */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}
.dashboard-sidebar .meta-box {
    margin-bottom: 24px;
}
.dashboard-sidebar .meta-box:last-child {
    margin-bottom: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 8px;
    box-shadow: inset 0 4px 0 0 #2563eb;
    overflow: visible;
}
.stat-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}
.stat-card h3 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    padding: 4px 0;
}
.stat-card p {
    font-size: 16px;
    color: #4b5563;
    margin: 0;
    font-weight: 600;
}

/* Admin Tabellen und Buttons */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
}
.modern-table thead {
    background: linear-gradient(135deg, #f9fafb, white);
}
.modern-table th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}
.modern-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 15px;
}
.modern-table tbody tr {
    transition: all 0.2s ease;
}
.modern-table tbody tr:hover {
    background: #f9fafb;
    transform: scale(1.005);
}
.modern-table tbody tr:last-child td {
    border-bottom: none;
}
.modern-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.modern-button:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}
.modern-button.secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}
.modern-button.secondary:hover {
    background: #2563eb;
    color: white;
}
.modern-button:disabled,
.modern-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.meta-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.3s ease;
}
.meta-box:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Formulare und Statusanzeigen */
.form-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.form-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    width: 250px;
    font-size: 14px;
}
.form-table td {
    padding: 24px 32px;
    border-bottom: 1px solid #f3f4f6;
}
.form-table tr:last-child th,
.form-table tr:last-child td {
    border-bottom: none;
}
.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    max-width: 400px;
}
.form-table input:focus,
.form-table select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}
.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid;
    font-weight: 500;
}
.alert-info {
    background: rgba(59, 130, 246, 0.05);
    color: #1e40af;
    border-left-color: #3b82f6;
}
.alert-success {
    background: rgba(16, 185, 129, 0.05);
    color: #047857;
    border-left-color: #10b981;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    color: #92400e;
    border-left-color: #f59e0b;
}
.alert-error {
    background: rgba(239, 68, 68, 0.05);
    color: #b91c1c;
    border-left-color: #ef4444;
}
.no-data {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f9fafb, white);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    margin: 32px 0;
}
.no-data .icon {
    font-size: 64px;
    opacity: 0.6;
    margin-bottom: 24px;
    filter: grayscale(1);
}
.no-data h3 {
    color: #374151;
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
}
.no-data p {
    margin: 0 0 32px 0;
    color: #6b7280;
    font-size: 16px;
}
.import-status {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
    transition: all 0.3s ease;
}
.import-status.show {
    display: block;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Frontend Settings Styles */
.font-preview-box {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.font-preview-box:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.font-preview-text {
    margin-top: 8px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    background: white;
    border: 1px solid #e5e7eb;
}

/* Modul-Tab Styles */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.module-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.module-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.module-card.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.module-card.inactive {
    background: #f9fafb;
    opacity: 0.7;
}
.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.module-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.module-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.module-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.module-status.active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.module-status.inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.module-description {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.module-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .toggle-slider {
    background-color: #10b981;
}
input:checked + .toggle-slider:before {
    transform: translateX(24px);
}
.toggle-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}
.module-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}
.btn-manage {
    background: #ffffff;
    color: #10b981;
    border: 2px solid #10b981;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-manage:hover {
    background: #10b981;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}
.save-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    animation: slideInScale 0.3s ease;
}
@keyframes slideInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.save-indicator.saving {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}
.save-indicator .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.toggle-switch.loading .toggle-slider {
    background-color: #3b82f6 !important;
}
.toggle-switch.loading .toggle-slider:before {
    background: linear-gradient(45deg, transparent 33%, rgba(255,255,255,0.5) 33%, rgba(255,255,255,0.5) 66%, transparent 66%);
    background-size: 8px 8px;
    animation: loading-stripes 1s linear infinite;
}
@keyframes loading-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 8px 8px; }
}
.toggle-switch.success .toggle-slider {
    background-color: #10b981 !important;
    animation: successPulse 0.6s ease;
}
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.module-card.just-saved {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    animation: cardSuccess 1s ease;
}
@keyframes cardSuccess {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
}
.module-card.pdf .module-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.module-card.seo .module-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.module-card.contact .module-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.module-card.probefahrt .module-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.module-card.statistics .module-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.module-card.statistics .btn-manage {
    background: #ffffff;
    color: #0ea5e9;
    border-color: #0ea5e9;
}
.module-card.statistics .btn-manage:hover {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}
.coming-soon {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}
.coming-soon h3 {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 1.25rem;
    font-weight: 700;
}
.coming-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.coming-module {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}
.coming-module:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.coming-module .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.coming-module strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
}
.coming-module small {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Fahrzeug-Editor Styles */
.carconnect-editor-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    margin: -6px -12px 20px -12px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.carconnect-editor-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px 32px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.carconnect-editor-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 12px;
}
.carconnect-save-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.carconnect-editor-content {
    background: white;
    padding: 0;
}
.carconnect-editor-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}
.carconnect-tab-button {
    padding: 20px 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.carconnect-tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.carconnect-tab-button:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}
.carconnect-tab-button.active {
    color: #2563eb;
    background: white;
}
.carconnect-tab-button.active::after {
    transform: scaleX(1);
}
.carconnect-tab-content {
    padding: 32px;
    display: none;
}
.carconnect-tab-content.active {
    display: block;
}
.carconnect-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.carconnect-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.carconnect-form-label {
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}
.carconnect-form-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #374151;
}
.carconnect-form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.carconnect-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}
.carconnect-info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 1px solid #0288d1;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #01579b;
}
.carconnect-info-box h4 {
    margin: 0 0 12px 0;
    color: #01579b;
    font-weight: 700;
}
.carconnect-info-box ul {
    margin: 0;
    padding-left: 20px;
}
.carconnect-info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}
.carconnect-gallery-container {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}
.carconnect-gallery-container.has-images {
    border-style: solid;
    background: white;
    text-align: left;
}
.carconnect-gallery-upload {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.carconnect-gallery-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.carconnect-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.carconnect-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 4/3;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.carconnect-gallery-item:hover {
    border-color: #2563eb;
    transform: scale(1.02);
}
.carconnect-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carconnect-gallery-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carconnect-gallery-item .position-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.carconnect-title-field {
    margin-bottom: 24px;
}
.carconnect-title-field label {
    display: block;
    font-weight: 700;
    color: #374151;
    font-size: 16px;
    margin-bottom: 8px;
}
.carconnect-title-field input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    color: #374151;
}
.carconnect-title-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.carconnect-admin-notice {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 1px solid #0288d1;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #01579b;
}
.carconnect-admin-notice h4 {
    margin: 0 0 8px 0;
    color: #01579b;
    font-weight: 700;
}
.editor-tip-box {
    background: #f0f6fc;
    border: 1px solid #72aee6;
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
}
.editor-tip-box small {
    color: #1d2327;
}

/* RESPONSIVE DESIGN FOR MOBILE ADMIN */
@media (max-width: 768px) {
    /* Header adjustments */
    .carconnect-header {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .carconnect-header h1 {
        font-size: 24px;
    }

    .carconnect-logo {
        width: 120px;
    }

    /* Navigation tabs mobile */
    .carconnect-nav {
        padding: 0 20px;
    }

    .carconnect-nav .nav-tab-wrapper {
        flex-wrap: wrap;
        gap: 4px;
    }

    .carconnect-nav .nav-tab {
        padding: 12px 16px;
        font-size: 14px;
        min-width: fit-content;
    }

    /* Content adjustments */
    .carconnect-content {
        padding: 20px;
    }

    /* Dashboard grid mobile */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card h3 {
        font-size: 28px;
    }

    /* Modules grid mobile */
    .modules-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .module-card {
        padding: 16px;
    }

    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .module-status {
        align-self: flex-end;
    }

    /* Tables mobile */
    .modern-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 16px !important;
        font-size: 13px !important;
        min-width: 100px !important;
    }

    /* Form improvements mobile */
    .carconnect-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-table th {
        padding: 16px 20px;
        width: auto;
    }

    .form-table td {
        padding: 16px 20px;
    }

    /* Editor tabs mobile */
    .carconnect-editor-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .carconnect-tab-button {
        padding: 16px 20px;
        font-size: 14px;
        min-width: fit-content;
    }

    .carconnect-tab-content {
        padding: 20px;
    }

    /* Gallery mobile */
    .carconnect-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    /* Button improvements */
    .modern-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

    .module-actions {
        justify-content: center;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .carconnect-dashboard {
        margin: 10px;
        border-radius: 8px;
    }

    .carconnect-header {
        padding: 12px 16px 16px 16px;
    }

    .carconnect-content {
        padding: 16px;
    }

    /* Single column stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Compact module cards */
    .module-card {
        padding: 12px;
    }

    .module-title {
        font-size: 1rem;
    }

    .module-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    /* Small screen tables */
    .modern-table th,
    .modern-table td {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }

    /* Form adjustments */
    .carconnect-form-input,
    .carconnect-title-field input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Gallery very small */
    .carconnect-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    /* Coming soon modules */
    .coming-modules {
        grid-template-columns: 1fr;
    }

    /* Tab content spacing */
    .carconnect-tab-content {
        padding: 16px;
    }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .modern-button,
    .btn-manage,
    .carconnect-tab-button {
        min-height: 44px; /* iOS touch target minimum */
    }

    .toggle-switch {
        min-width: 52px;
        min-height: 28px;
    }

    .carconnect-gallery-item .remove-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}