/* c:\AI_playground\Erstklassiger_Honig\css\premium_style.css */

/* Core Variablen & Design System basierend auf tender-agent-manager */
:root {
    --bg-main: #090d16;
    --bg-sidebar: #0f1524;
    --bg-card: rgba(18, 26, 47, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #ffc107; /* Gelb/Amber */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #ffc107; /* Gelb/Amber für Honig */
    --color-primary-hover: #e0a800;
    --color-primary-glow: rgba(255, 193, 7, 0.15);
    
    --color-secondary: #10b981;
    --color-secondary-hover: #059669;
    --color-secondary-glow: rgba(16, 185, 129, 0.15);

    --color-red: #ef4444;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- THEMEN DEFINITIONEN --- */
body.theme-neon {
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-glow: rgba(99, 102, 241, 0.15);
    --color-secondary: #10b981;
    --color-secondary-hover: #059669;
    --color-secondary-glow: rgba(16, 185, 129, 0.15);
    --border-focus: #6366f1;
    --bg-main: #090d16;
    --bg-sidebar: #0f1524;
    --bg-card: rgba(18, 26, 47, 0.65);
}

body.theme-cyber {
    --color-primary: #ec4899;
    --color-primary-hover: #db2777;
    --color-primary-glow: rgba(236, 72, 153, 0.15);
    --color-secondary: #06b6d4;
    --color-secondary-hover: #0891b2;
    --color-secondary-glow: rgba(6, 182, 212, 0.15);
    --border-focus: #ec4899;
    --bg-main: #0c0813;
    --bg-sidebar: #150f22;
    --bg-card: rgba(21, 15, 34, 0.65);
}

body.theme-forest {
    --color-primary: #10b981;
    --color-primary-hover: #059669;
    --color-primary-glow: rgba(16, 185, 129, 0.15);
    --color-secondary: #d97706;
    --color-secondary-hover: #b45309;
    --color-secondary-glow: rgba(217, 119, 6, 0.15);
    --border-focus: #10b981;
    --bg-main: #0b0f0b;
    --bg-sidebar: #121812;
    --bg-card: rgba(18, 24, 18, 0.65);
}

body.theme-classic {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-glow: rgba(37, 99, 235, 0.15);
    --color-secondary: #0ea5e9;
    --color-secondary-hover: #0284c7;
    --color-secondary-glow: rgba(14, 165, 233, 0.15);
    --border-focus: #2563eb;
    --bg-main: #070d19;
    --bg-sidebar: #0d1527;
    --bg-card: rgba(13, 21, 39, 0.65);
}

body.theme-warm-honey {
    --color-primary: #DAA520; /* Goldenrod Gelb/Gold */
    --color-primary-hover: #b45309;
    --color-primary-glow: rgba(217, 119, 6, 0.15);
    --color-secondary: #f59e0b; /* Helles Gold/Amber */
    --color-secondary-hover: #d97706;
    --color-secondary-glow: rgba(245, 158, 11, 0.15);
    --border-focus: #d97706;
    --bg-main: #fffbeb; /* Sehr helles, warmes Gelb */
    --bg-sidebar: #DAA520; /* Goldenrod Gelb/Gold */
    --bg-card: rgba(254, 243, 199, 0.95); /* Weicher, warmer Honigton für die Karte */
    --text-primary: #451a03; /* Sehr dunkles Braun für hervorragenden Kontrast */
    --text-secondary: #78350f;
    --text-muted: #92400e;
    --border-color: rgba(217, 119, 6, 0.2);
}

/* Spezifische Overrides für das warme Honig-Theme */
body.theme-warm-honey .card.glass, body.theme-warm-honey .login-card.glass {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-warm-honey .form-control.premium-input {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.theme-warm-honey .form-control.premium-input::placeholder {
    color: #b45309 !important;
    opacity: 0.6;
}

body.theme-warm-honey .btn-premium {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
}

body.theme-warm-honey label {
    color: var(--text-primary) !important;
}

body.theme-warm-honey .text-muted {
    color: var(--text-secondary) !important;
}

/* Background Glow Effects */
body.premium-layout::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body.premium-layout::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-secondary-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Cards */
.card.glass, .login-card.glass {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    transition: var(--transition-smooth) !important;
}

.card.glass:hover, .login-card.glass:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Premium Form Elements */
.premium-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.premium-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.premium-input-wrapper input {
    padding-left: 44px !important;
}

.form-control.premium-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    padding: 12px 16px;
    transition: var(--transition-smooth);
}

.form-control.premium-input:focus {
    border-color: var(--border-focus) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 0 3px var(--color-primary-glow) !important;
    color: var(--text-primary) !important;
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 14px var(--color-primary-glow) !important;
    transition: var(--transition-smooth) !important;
}

.btn-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1), 0 6px 20px var(--color-primary-glow) !important;
}

.btn-premium:active {
    transform: translateY(0) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hilfsklassen für Admin-Sidebar-Verknüpfung */
.premium-admin-sidebar {
    background-color: var(--bg-sidebar) !important;
    color: var(--text-primary) !important;
    border-right: 1px solid var(--border-color) !important;
}

.premium-admin-sidebar a, .premium-admin-sidebar button, .premium-admin-sidebar span, .premium-admin-sidebar p, .premium-admin-sidebar h1 {
    color: var(--text-primary) !important;
}

.premium-admin-sidebar a:hover, .premium-admin-sidebar button:hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary) !important;
}

.premium-admin-sidebar .nav-item-active {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
    border-left: 4px solid var(--text-primary) !important;
}

.premium-admin-text {
    color: var(--text-primary) !important;
}

.premium-admin-text-muted {
    color: var(--text-secondary) !important;
}

.premium-admin-border {
    border-color: var(--border-color) !important;
}

.premium-admin-bg {
    background-color: var(--bg-main) !important;
}

/* Verstecke die standardmäßige schwarze Footer-Leiste im Admin-Layout */
body.premium-layout .fixed-bottom {
    display: none !important;
}

/* Bootstrap Modal CSS Fallback für Tailwind */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 800px;
    pointer-events: none;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    background-clip: padding-box;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.5rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}
.modal.show {
    display: block !important;
}
.modal.fade {
    transition: opacity 0.15s linear;
}

/* Premium Tabellen-Stile analog zur Honigakademie, angepasst an warm-honey */
.table, .data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    color: var(--text-primary) !important;
    background-color: #ffffff !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
}

.table th, .table td, .data-table th, .data-table td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table th, .data-table th {
    background-color: #fef3c7 !important; /* warm-honey hellgelber Table Header */
    color: #78350f !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.table-striped tbody tr:nth-of-type(odd), .data-table tbody tr:nth-of-type(odd) {
    background-color: #fffbeb !important; /* Sehr helles Honiggelb */
}

.table-striped tbody tr:nth-of-type(even), .data-table tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

.table-hover tbody tr:hover, .data-table tbody tr:hover {
    background-color: #fef08a !important; /* Helleres Hover-Gelb */
    color: #451a03 !important;
}

/* Überschreiben der Bootstrap table-danger und table-success Klassen für warm-honey */
.table tr.table-danger td, .data-table tr.table-danger td {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}
.table tr.table-success td, .data-table tr.table-success td {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

/* Status Spalten farblich hervorheben */
.status-bereit {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    font-weight: 600;
}
.status-offen {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 600;
}

/* Fix für Konflikt zwischen Tailwind CSS und Bootstrap .collapse */
.collapse.show {
    visibility: visible !important;
    display: block !important;
}
.collapsing {
    visibility: visible !important;
}

/* Fix für Tailwind Preflight, das Standard-Rahmen auf Buttons und Formularelementen zurücksetzt */
.btn {
    border-style: solid !important;
    border-width: 1px !important;
}

/* Gefüllte Buttons benötigen keinen Rahmen */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark, .btn-premium {
    border-style: none !important;
}

/* Outline-Buttons müssen ihre Umrandung explizit behalten */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info {
    border-style: solid !important;
    border-width: 1px !important;
}

/* Formularelemente-Rahmen absichern */
.form-control, .form-select {
    border-style: solid !important;
    border-width: 1px !important;
    border-color: var(--input-border, var(--border-color)) !important;
}

/* Behebt potenzielle Darstellungsfehler bei Modals und Dropdowns */
.dropdown-menu {
    z-index: 1000 !important;
}
.modal {
    z-index: 1055 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}

/* ============================================================
   MODAL DIALOG (GLASSMORPHISM) FOR AI DETAILS
   ============================================================ */
.modal-overlay-ki {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay-ki.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card-ki {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay-ki.open .modal-card-ki {
    transform: scale(1);
}

.modal-close-ki {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #444;
    transition: color 0.2s;
}

.modal-close-ki:hover {
    color: var(--accent-gold, #daa520);
}

.modal-header-ki {
    border-bottom: 2px solid var(--accent-gold, #daa520);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header-ki h2 {
    color: var(--accent-gold, #daa520);
    margin: 0;
    font-size: 24px;
}

.modal-body-ki h3 {
    margin-top: 20px;
    color: #d97706;
}

.ki-box-ki {
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--accent-gold, #daa520);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-style: italic;
    white-space: pre-line;
}

.lab-values-grid-ki {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.lab-value-item-ki {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.lab-value-item-ki strong {
    display: block;
    color: #555;
    font-size: 13px;
}

.lab-value-item-ki span {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-gold, #daa520);
}

.leaderboard-row-clickable {
    cursor: pointer;
    transition: background-color 0.2s;
}
.leaderboard-row-clickable:hover {
    background-color: rgba(218, 165, 32, 0.08) !important;
}






