/* Einheitliches Admin CSS - Überschreibt admin.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --text-light: #ffffff;
    --bg-color: #f5f7fa;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
}

/* Admin Container - Hauptlayout */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    background-color: var(--dark-color);
    color: var(--text-light);
    transition: left 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
    height: 50px;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.sidebar-nav i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-nav .active a {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.sidebar-footer {
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Main Content Area - WICHTIG: Volle Breite nutzen */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    background-color: var(--bg-color);
    transition: margin-left 0.3s ease;
}

/* Admin Header */
.admin-header {
    background-color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    display: none;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Content Area - Maximale Breite für bessere Lesbarkeit */
.admin-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Einheitliche Karten */
.card, .stat-card, .recent-orders, .quick-actions, .product-form, .brand-form-container, .customer-detail-container, .settings-tabs {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Dashboard Stats Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.stat-icon.orders { background-color: #e3f2fd; color: #1976d2; }
.stat-icon.customers { background-color: #f3e5f5; color: #7b1fa2; }
.stat-icon.revenue { background-color: #e8f5e9; color: #388e3c; }
.stat-icon.products { background-color: #fff3e0; color: #f57c00; }

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1200px) {
    .dashboard-sections {
        grid-template-columns: 2fr 1fr;
    }
}

/* Tabellen */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e9ecef;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Einheitliche Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--light-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success { background-color: var(--success-color); color: white; }
.badge-warning { background-color: var(--warning-color); color: white; }
.badge-danger { background-color: var(--danger-color); color: white; }
.badge-info { background-color: var(--info-color); color: white; }
.badge-secondary { background-color: #6b7280; color: white; }

/* Formulare */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Filter Section */
.product-filters,
.order-filters,
.customer-filters,
.brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0;
}

/* Einheitliche Notifications - Dashboard-Stil */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success { background-color: var(--success-color); }
.notification.error { background-color: var(--danger-color); }
.notification.warning { background-color: var(--warning-color); }
.notification.info { background-color: var(--info-color); }

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action Buttons Grid */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    color: var(--primary-color);
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.action-btn i {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Product/Brand Thumbnails */
.product-thumb,
.brand-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .admin-sidebar {
        left: -250px;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Select Dropdown */
.status-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: white;
    cursor: pointer;
}

/* Settings Tabs */
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin: -25px -25px 25px -25px;
    padding: 0 25px;
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Image Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.highlight {
    border-color: var(--secondary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Einheitliche Abstände und Ausrichtung */
h2, h3 {
    color: var(--text-color);
    margin-top: 0;
}

.text-center {
    text-align: center;
}

/* Bessere Hover-Effekte für alle interaktiven Elemente */
a, button, .btn, .action-btn, .page-btn, select, input[type="submit"] {
    transition: all 0.3s ease;
}

/* Konsistente Schatten */
.card:hover,
.stat-card:hover,
.action-btn:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.admin-sidebar {
    background-color: #2c3e50 !important; /* Dunkelblau */
}

.admin-main {
    background-color: #f5f7fa !important; /* Hellgrau */
}

.sidebar-footer .btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
}

.sidebar-footer .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-footer .btn-secondary {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-footer .btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Fügen Sie diese Regeln in die admin.css ein oder in den <style>-Bereich der brands/list.html */
.admin-sidebar .sidebar-footer .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
    padding: 10px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar .sidebar-footer .btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.admin-sidebar .sidebar-footer .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar .sidebar-footer .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.admin-sidebar .sidebar-footer .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-sidebar .sidebar-footer .btn i {
    margin-right: 8px;
}

.sidebar-header {
padding: 20px;
text-align: center;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

        .sidebar-header img {
            max-width: 60%;
            margin-bottom: 15px;
        }

        .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}