/* ============================================================
   ADMIN DASHBOARD V2.0 - STYLES
   ============================================================
   Moderne, professionelle Admin-Oberfläche
   ============================================================ */

/* ============================================================
   1. ADMIN NAVBAR (Obere Navigation)
   ============================================================ */

.admin-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================================
   ADMIN AUTH OVERLAY
   ============================================================ */

.auth-hidden {
    display: none;
}

.admin-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    backdrop-filter: blur(3px);
}

.admin-auth-overlay.hidden {
    display: none;
}

.admin-auth-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 2.25rem;
    max-width: 420px;
    width: calc(100% - 3rem);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.admin-auth-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-auth-subtitle {
    margin: 0 0 1.75rem;
    color: #64748b;
    line-height: 1.5;
}

.admin-auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.admin-auth-form label {
    font-weight: 600;
    color: #0f172a;
}

.admin-auth-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5f5;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-auth-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.admin-auth-form button {
    width: 100%;
    margin-top: 0.25rem;
}

.admin-auth-message {
    min-height: 1.25rem;
    margin-top: 1rem;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
}
.admin-nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-nav-logo i {
    font-size: 1.75rem;
}

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

.admin-nav-menu a,
.admin-nav-menu button {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Legacy Support - ADMIN HEADER BAR */
.admin-header-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-name {
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.95rem;
}

.btn-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* ============================================================
   2. ADMIN LAYOUT & CONTAINER
   ============================================================ */

.admin-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
}

.admin-layout {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    background: #f8f9fa;
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.admin-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.admin-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.admin-filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: calc(100vh - 120px);
}

.admin-nav {
    flex: 1;
    padding: 1.5rem 0;
}

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

.admin-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.admin-nav-link span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.admin-nav-link:hover {
    background: #f8f9fa;
    color: #334155;
}

.admin-nav-link.active {
    background: linear-gradient(90deg, #f0f4ff 0%, transparent 100%);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.nav-badge {
    background: #e3f2fd;
    color: #2196f3;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-nav-link.active .nav-badge {
    background: #667eea;
    color: white;
}

.admin-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.admin-sidebar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Main Content */
.admin-main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-tab-content > h2 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   3. ADMIN CARDS & GRIDS
   ============================================================ */

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    font-size: 1.125rem;
    color: #334155;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   4. KPI CARDS
   ============================================================ */

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

.admin-kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-kpi-icon,
.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.admin-kpi-content,
.kpi-content {
    flex: 1;
}

.admin-kpi-content h3,
.kpi-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}

.admin-kpi-content p,
.kpi-content p {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem 0 0 0;
}

.admin-kpi-content small,
.kpi-content small {
    color: #94a3b8;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Charts Row */
.admin-charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-chart-card h3 {
    font-size: 1.125rem;
    color: #334155;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-chart-card canvas {
    max-height: 300px;
}

/* Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-stats-card h3 {
    font-size: 1.125rem;
    color: #334155;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   5. SECTION HEADERS & ACTIONS
   ============================================================ */

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-section-header h2 {
    margin: 0;
}

.admin-section-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-date {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
}

/* ============================================================
   6. DATA TABLE
   ============================================================ */

.admin-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges für Tabellen */
.status-badge-admin {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-locked {
    background: #fff3cd;
    color: #856404;
}

.status-sent {
    background: #d1ecf1;
    color: #0c5460;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================================
   7. EXPORT CARDS
   ============================================================ */

.admin-export-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-export-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-export-card h3 {
    color: #334155;
    margin: 1rem 0 0.5rem 0;
}

.admin-export-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   8. ACTION BUTTONS
   ============================================================ */

.admin-action-btns {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-admin {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-primary {
    background: #667eea;
    color: white;
}

.btn-admin-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.btn-admin-danger {
    background: #ef4444;
    color: white;
}

.btn-admin-danger:hover {
    background: #dc2626;
}

.btn-admin-success {
    background: #10b981;
    color: white;
}

.btn-admin-success:hover {
    background: #059669;
}

.btn-admin-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-admin-secondary:hover {
    background: #cbd5e1;
}

/* ============================================================
   9. PROVIDER CARDS
   ============================================================ */

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.provider-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.provider-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.provider-card-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.125rem;
    flex: 1;
}

.provider-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.provider-card-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-card-info i {
    width: 16px;
    color: #94a3b8;
}

.provider-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.provider-stat {
    text-align: center;
}

.provider-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.provider-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    margin-top: 0.25rem;
}

.provider-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   10. BOOKING CARDS
   ============================================================ */

.booking-card-admin {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #3b82f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.booking-card-admin:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.booking-card-admin-info {
    flex: 1;
}

.booking-card-admin-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.booking-card-admin-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.booking-card-admin-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================
   11. INVOICE STYLES
   ============================================================ */

.invoice-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.invoice-id {
    font-weight: 700;
    color: #667eea;
    font-size: 1.125rem;
}

.invoice-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.invoice-detail-item {
    font-size: 0.875rem;
}

.invoice-detail-label {
    color: #64748b;
    font-weight: 500;
}

.invoice-detail-value {
    color: #1e293b;
    font-weight: 600;
}

.invoice-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ============================================================
   12. FORMS & INPUTS
   ============================================================ */

.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #334155;
    font-size: 0.8rem;
}

.admin-form-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease;
}

.admin-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form-textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 80px;
}

.admin-form-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
    cursor: pointer;
}

/* ============================================================
   13. STATS LISTS
   ============================================================ */

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.stats-list-label {
    color: #64748b;
    font-size: 0.875rem;
}

.stats-list-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

/* ============================================================
   14. RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .admin-container,
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-navbar {
        padding: 0.75rem 0;
    }
    
    .admin-nav-container {
        flex-wrap: wrap;
    }
    
    .admin-nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .admin-nav-link {
        flex-direction: column;
        padding: 1rem;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .admin-nav-link span:first-of-type {
        font-size: 0.75rem;
    }
    
    .admin-grid-2,
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-charts-row,
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-navbar {
        padding: 0.5rem 0;
    }
    
    .admin-nav-container {
        padding: 0 1rem;
    }
    
    .admin-nav-logo h2 {
        font-size: 1.125rem;
    }
    
    .admin-nav-menu {
        gap: 0.5rem;
    }
    
    .admin-nav-menu button {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .admin-main,
    .admin-main-content {
        padding: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-section-actions {
        width: 100%;
    }
    
    .admin-header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .admin-filter-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .admin-filter-row .admin-form-select,
    .admin-filter-row .admin-form-input {
        width: 100%;
    }
    
    .search-input,
    .admin-search-box input {
        width: 100%;
        min-width: auto;
    }
    
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-kpi-card {
        padding: 1rem;
    }
    
    .admin-kpi-icon,
    .kpi-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .admin-kpi-content h3,
    .kpi-content h3 {
        font-size: 1.5rem;
    }
    
    .admin-charts-row,
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
    
    .admin-chart-card canvas {
        max-height: 250px;
    }
    
    .provider-grid {
        grid-template-columns: 1fr;
    }
    
    .provider-card-stats {
        grid-template-columns: 1fr;
    }
    
    .booking-card-admin {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-card-admin-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .booking-card-admin-actions {
        width: 100%;
        margin-top: 1rem;
        justify-content: stretch;
    }
    
    .booking-card-admin-actions .btn-admin {
        flex: 1;
        justify-content: center;
    }
    
    .invoice-details {
        grid-template-columns: 1fr;
    }
    
    .invoice-actions {
        flex-direction: column;
    }
    
    .invoice-actions .btn-admin {
        width: 100%;
        justify-content: center;
    }
    
    .provider-card-actions {
        flex-direction: column;
    }
    
    .provider-card-actions .btn-admin {
        width: 100%;
        justify-content: center;
    }
    
    .admin-action-btns {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-action-btns .btn-admin {
        width: 100%;
        justify-content: center;
    }
    
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .btn-admin {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
        min-height: 44px;
    }
    
    .admin-form-input,
    .admin-form-select,
    .admin-form-textarea {
        padding: 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .message-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .admin-navbar {
        padding: 0.5rem 0;
    }
    
    .admin-nav-container {
        padding: 0 0.75rem;
        flex-wrap: nowrap;
    }
    
    .admin-nav-logo h2 {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .admin-nav-logo i {
        font-size: 1.25rem;
    }
    
    .admin-nav-menu a {
        font-size: 0.75rem;
    }
    
    .admin-nav-menu button {
        font-size: 0.75rem;
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .admin-nav-menu button i {
        display: none;
    }
    
    .admin-sidebar-header h3 {
        font-size: 1rem;
    }
    
    .admin-nav-link {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .admin-nav-link i {
        font-size: 1.125rem;
    }
    
    .admin-main,
    .admin-main-content {
        padding: 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
    }
    
    .admin-header p {
        font-size: 0.875rem;
    }
    
    .admin-kpi-card {
        padding: 1rem 0.75rem;
    }
    
    .admin-kpi-icon,
    .kpi-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .admin-kpi-content h3,
    .kpi-content h3 {
        font-size: 1.25rem;
    }
    
    .admin-kpi-content p,
    .kpi-content p {
        font-size: 0.8125rem;
    }
    
    .admin-kpi-content small,
    .kpi-content small {
        font-size: 0.6875rem;
    }
    
    .admin-chart-card,
    .admin-stats-card {
        padding: 1rem;
    }
    
    .admin-chart-card h3,
    .admin-stats-card h3 {
        font-size: 1rem;
    }
    
    .admin-chart-card canvas {
        max-height: 200px;
    }
    
    .provider-card {
        padding: 1rem;
    }
    
    .provider-card-header h4 {
        font-size: 1rem;
    }
    
    .booking-card-admin {
        padding: 0.75rem;
    }
    
    .booking-card-admin-title {
        font-size: 0.875rem;
    }
    
    .booking-card-admin-details {
        font-size: 0.8125rem;
    }
    
    .invoice-card {
        padding: 1rem;
    }
    
    .invoice-id {
        font-size: 1rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-admin {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .admin-form-input,
    .admin-form-select,
    .admin-form-textarea {
        padding: 0.75rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .admin-form-group label {
        font-size: 0.8125rem;
    }
    
    .admin-loading {
        padding: 2rem 1rem;
    }
    
    .admin-loading i {
        font-size: 1.5rem;
    }
    
    .admin-empty-state {
        padding: 2rem 1rem;
    }
    
    .admin-empty-state i {
        font-size: 2rem;
    }
}

/* ============================================================
   15. UTILITIES
   ============================================================ */

.text-muted {
    color: #94a3b8;
}

.text-danger {
    color: #ef4444;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.badge-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1.5rem 0;
}

/* Loading States */
.admin-loading {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.admin-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty States */
.admin-empty-state {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.admin-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.admin-empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Pulse Animation für Logo */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================================
   MESSAGE SYSTEM
   ============================================================ */

.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.message {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #3b82f6;
}

.message-success {
    border-left-color: #10b981;
}

.message-error {
    border-left-color: #ef4444;
}

.message-warning {
    border-left-color: #f59e0b;
}

.message-info {
    border-left-color: #3b82f6;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.message-content i {
    font-size: 1.25rem;
}

.message-success .message-content i {
    color: #10b981;
}

.message-error .message-content i {
    color: #ef4444;
}

.message-warning .message-content i {
    color: #f59e0b;
}

.message-info .message-content i {
    color: #3b82f6;
}

.message-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.message-close:hover {
    background: #f3f4f6;
    color: #374151;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================================
   VERFÜGBARKEITSSTATUS-STYLES
   ============================================================ */

.availability-status-container {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.availability-status.available {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.availability-status.conflict {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

.availability-status.error {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.conflicts-list {
    margin-top: 1rem;
}

.conflicts-list h4 {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conflict-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.conflict-time {
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #374151;
    min-width: 100px;
    text-align: center;
}

.conflict-details {
    flex: 1;
}

.conflict-details strong {
    color: #111827;
}

.conflict-details small {
    color: #6b7280;
}

.suggestions-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.suggestions-section h4 {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.suggestion-slot {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-slot:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.suggestion-slot:active {
    transform: translateY(0);
}

/* ============================================================
   GEBÄUDE & RÄUME VERWALTUNG - STYLES
   ============================================================ */

/* Container für Gebäude & Räume Tab */
.admin-rooms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .admin-rooms-container {
        grid-template-columns: 1fr;
    }
}

/* Gebäude & Räume Section */
.admin-rooms-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.admin-rooms-header {
    margin-bottom: 1.5rem;
}

.admin-rooms-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-rooms-header h2 i {
    color: #667eea;
}

/* Admin Table Styles */
.admin-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Admin Badge Styles */
.admin-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.admin-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Admin Button Small */
.btn-admin-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Button Actions in Table */
.admin-table td:last-child {
    white-space: nowrap;
}

/* Admin Search Box */
.admin-search-box {
    position: relative;
    margin-bottom: 1rem;
}

.admin-search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.admin-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Admin Form Styles */
.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
    font-size: 0.875rem;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Admin Buttons */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-admin-primary {
    background: #667eea;
    color: white;
}

.btn-admin-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-admin-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-admin-secondary:hover {
    background: #e2e8f0;
}

.btn-admin-danger {
    background: #ef4444;
    color: white;
}

.btn-admin-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Responsive Design für Verfügbarkeitsstatus */
@media (max-width: 768px) {
    .suggestions-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .conflict-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .conflict-time {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================================
   ADMIN-ÄNDERUNGS-HINWEISE
   ============================================================ */

.admin-change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    border: 1px solid #f59e0b;
    position: relative;
    cursor: help;
}

.admin-change-indicator:hover .admin-change-reason {
    display: block;
}

.admin-change-indicator i {
    font-size: 0.875rem;
}

.admin-change-text {
    font-weight: 600;
}

.admin-change-reason {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    white-space: normal;
    line-height: 1.4;
}

.admin-change-reason::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #1f2937;
}

.admin-change-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    border: 1px solid #f59e0b;
    cursor: help;
}

/* Admin-Änderungs-Hinweis in Tabellen */
.admin-table td .admin-change-indicator {
    margin-top: 0.25rem;
    display: block;
}

/* Responsive Design für Admin-Änderungs-Hinweise */
@media (max-width: 768px) {
    .admin-change-indicator {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .admin-change-reason {
        font-size: 0.7rem;
        padding: 0.5rem;
        max-width: 250px;
    }
    
    .admin-change-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
}

/* ============================================================
   STORNIERUNGS-HINWEISE
   ============================================================ */

.cancellation-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    border: 1px solid #dc2626;
    position: relative;
    cursor: help;
}

.cancellation-indicator:hover .cancellation-reason {
    display: block;
}

.cancellation-indicator i {
    font-size: 0.875rem;
}

.cancellation-text {
    font-weight: 600;
}

.cancellation-reason {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    white-space: normal;
    line-height: 1.4;
}

.cancellation-reason::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #1f2937;
}

.cancellation-badge {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    border: 1px solid #dc2626;
    cursor: help;
}

/* Stornierungs-Hinweis in Tabellen */
.admin-table td .cancellation-indicator {
    margin-top: 0.25rem;
    display: block;
}

/* Responsive Design für Stornierungs-Hinweise */
@media (max-width: 768px) {
    .cancellation-indicator {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .cancellation-reason {
        font-size: 0.7rem;
        padding: 0.5rem;
        max-width: 250px;
    }
    
    .cancellation-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
}

