/*
 * GGG Developments Admin CRM - Refined Theme
 * Focus: clean contrast, consistent spacing, glassmorphism touches
 */
:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0b1220;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.25), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.2), transparent 30%),
                linear-gradient(135deg, #0b1220 0%, #111827 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #3b82f6; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
    color: var(--text);
    line-height: 1.6;
}

/* Layout helpers */
.container { max-width: 1500px; }

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.navbar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i { color: var(--accent); }
.navbar-brand:hover {
    color: #fff !important;
    text-decoration: none;
}
.navbar-brand:hover i {
    color: #0ea5e9;
}

.navbar-nav {
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.navbar-nav .nav-link {
    color: var(--muted) !important;
    font-weight: 600;
    padding: 0.6rem 0.9rem !important;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.navbar .dropdown-menu {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.navbar .dropdown-item {
    color: var(--text);
    font-weight: 500;
}
.navbar .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

/* Cards */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
}
.card-header {
    border-bottom: 1px solid var(--border);
    background: var(--panel-strong);
    font-weight: 700;
}
.card-body { color: var(--text); }
.card.bg-primary,
.card.bg-success,
.card.bg-danger,
.card.bg-warning,
.card.bg-info {
    border: none;
    box-shadow: var(--shadow);
}
.card.bg-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.card.bg-success { background: linear-gradient(135deg, #10b981, #059669); }
.card.bg-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.card.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card.bg-info { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.card .btn { border-radius: 10px; }

/* Tables */
.table {
    color: #fff;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0f172a;
    margin-bottom: 0;
}
.table thead {
    background: #1a2332;
    border-bottom: 1px solid var(--border);
}
.table thead th {
    border: none;
    color: #fff;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.75rem 1rem;
}
.table tbody tr { 
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.table tbody tr:hover { 
    background-color: #1a2844;
}
.table tbody tr:last-child {
    border-bottom: none;
}
.table tbody td { 
    border: none;
    color: #fff;
    padding: 0.75rem 1rem;
}
.table tbody th {
    color: #fff;
    padding: 0.75rem 1rem;
}

/* Input elements - ensure they're visible and editable */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    font-size: 16px !important; /* Prevent mobile zoom on focus */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
.form-label {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}
.form-control, .form-select, textarea {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}
.form-control {
    color: #fff !important;
}
.form-control::placeholder, textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
.form-select {
    color: #fff !important;
}
.form-select option {
    background: #0f172a;
    color: #e5e7eb;
}
.form-select > option:first-child {
    color: #e5e7eb;
}
.form-control:focus, .form-select:focus, textarea:focus {
    background: #0f172a;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    color: var(--text);
    caret-color: var(--text);
}
textarea {
    resize: vertical;
}

/* Form containers */
.form-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-container h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Input groups */
.input-group {
    margin-bottom: 1rem;
}
.input-group .input-group-text {
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
}
.input-group .form-control {
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
}
.input-group .form-control::placeholder {
    color: #94a3b8;
}
.input-group .form-control:focus {
    border-color: #2563eb;
    background: #0f172a;
    color: #e5e7eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.input-group .btn-primary {
    border: 1px solid #2563eb;
}
.input-group:has(.form-control:focus) .input-group-text {
    border-color: #2563eb;
    background: #0f172a;
    color: #60a5fa;
}
::placeholder { 
    color: #e2e8f0 !important;
    opacity: 0.8 !important;
}
::-webkit-input-placeholder {
    color: #e2e8f0 !important;
    opacity: 0.8 !important;
}
::-moz-placeholder {
    color: #e2e8f0 !important;
    opacity: 0.8 !important;
}
:-ms-input-placeholder {
    color: #e2e8f0 !important;
    opacity: 0.8 !important;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn:focus { box-shadow: none; outline: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}
.btn-primary:hover { 
    filter: brightness(1.05); 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37,99,235,0.45);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
    color: #fff;
}
.btn-success:hover { filter: brightness(1.05); color: #fff; }
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: #fff;
}
.btn-danger:hover { filter: brightness(1.05); color: #fff; }
.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: #fff;
}
.btn-warning:hover { filter: brightness(1.05); color: #fff; }
.btn-info {
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    color: #fff;
}
.btn-info:hover { filter: brightness(1.05); color: #fff; }
.btn-light { 
    background: rgba(255,255,255,0.15); 
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-light:hover { 
    background: rgba(255,255,255,0.25); 
    color: #fff;
}
.btn-outline-secondary {
    color: #cbd5e1;
    border: 1px solid #475569;
    background: transparent;
}
.btn-outline-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: #64748b;
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}
.alert-success { 
    border-color: rgba(16,185,129,0.4) !important;
    background: rgba(16,185,129,0.12) !important;
    color: #a7f3d0 !important;
}
.alert-danger { 
    border-color: rgba(239,68,68,0.4) !important;
    background: rgba(239,68,68,0.12) !important;
    color: #fecdd3 !important;
}
.alert-warning { 
    border-color: rgba(245,158,11,0.4) !important;
    background: rgba(245,158,11,0.12) !important;
    color: #fed7aa !important;
}
.alert-info { 
    border-color: rgba(6,182,212,0.4) !important;
    background: rgba(6,182,212,0.12) !important;
    color: #bae6fd !important;
}
.alert-dark {
    border-color: rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #f3f4f6 !important;
}

/* Footer */
footer {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: transparent;
    margin-top: auto;
}
footer a { color: #cbd5e1; }
footer a:hover { color: #fff; }

/* Utility classes */
.text-muted { color: #94a3b8 !important; }
.text-secondary { color: #cbd5e1 !important; }
.border-top { border-top-color: var(--border) !important; }
.border-bottom { border-bottom-color: var(--border) !important; }

/* Badge colors */
.badge {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
}
.bg-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.bg-success { background: linear-gradient(135deg, var(--success) 0%, #047857 100%); }
.bg-danger { background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%); }
.bg-warning { background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%); }
.bg-info { background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%); }
.bg-secondary { background: #475569; }
.bg-dark { background: #1e293b; }
.bg-light { background: rgba(255,255,255,0.1); }

/* Login Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.25), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(6,182,212,0.2), transparent 30%),
                linear-gradient(135deg, #0b1220 0%, #0f172a 50%, #111827 100%);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.25rem;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.auth-brand i { color: var(--accent); }
.auth-title { margin: 0; font-size: 1.6rem; font-weight: 800; }
.auth-sub { margin: 0; color: var(--muted); }
.auth-footer { margin-top: 1.5rem; color: var(--muted); font-size: 0.9rem; text-align: center; }

.auth-form .form-label { color: var(--text); font-weight: 600; }
.auth-form .btn { width: 100%; }

/* Misc */
.badge { border-radius: 999px; padding: 0.35rem 0.75rem; }
.shadow-soft { box-shadow: 0 12px 30px rgba(0,0,0,0.35); }

/* Light background text handling */
.bg-white, .bg-light {
    color: #000 !important;
}
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: #000 !important;
}
.bg-white p, .bg-light p {
    color: #333 !important;
}
.bg-white .text-muted, .bg-light .text-muted {
    color: #666 !important;
}
.modal-content {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border);
    color: var(--text);
}
.modal-header {
    background: var(--panel-strong);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.modal-body { color: var(--text); }
.modal-footer {
    background: var(--panel);
    border-top: 1px solid var(--border);
}
.btn-close {
    filter: invert(1);
}

/* Gewinnverteilung Layout */
.distribution-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.distribution-header {
    background: linear-gradient(135deg, #1a366b 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.4);
}
.distribution-header h6 {
    color: #e0f2fe;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}
.distribution-header small {
    color: #e0f2fe;
    font-weight: 500;
    font-size: 0.8rem;
}
.icon-circle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.18);
    color: #fff;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}
.chip-soft {
    background: rgba(6, 182, 212, 0.15);
    color: #e0f2fe;
    border-color: rgba(6, 182, 212, 0.35);
}
.distribution-meta {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
    border-bottom: 1px solid var(--border);
}
.meta-block {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}
.meta-block:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.14));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.12);
}
.meta-block span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.meta-block strong {
    font-size: 1.5rem;
    color: #22d3ee;
    font-weight: 700;
    line-height: 1.2;
}
.distribution-table .table thead {
    background: linear-gradient(135deg, #1a366b 0%, #1d4ed8 100%) !important;
    border-radius: 0 !important;
}
.distribution-card {
    border-radius: var(--radius);
    overflow: hidden;
}
.distribution-card .distribution-table {
    border-radius: 0;
}
.distribution-table .table {
    border-radius: 0 !important;
}
.distribution-table .table thead,
.distribution-head th {
    color: #e0f2fe !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}
.distribution-table .table thead th {
    border: none !important;
    padding: 1rem 1rem !important;
    color: #bae6fd !important;
    background: transparent !important;
    border-radius: 0 !important;
}
.distribution-table .table thead th:first-child {
    border-radius: 0 !important;
}
.distribution-table .table thead th:last-child {
    border-radius: 0 !important;
}
.distribution-table .table tbody td {
    border-color: rgba(37, 99, 235, 0.25) !important;
    padding: 0.95rem 1rem !important;
    color: #e2e8f0 !important;
}
.distribution-table .table tbody tr {
    transition: all 0.2s ease;
    background: transparent !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.distribution-table .table tbody tr:hover {
    background: rgba(37, 99, 235, 0.12) !important;
}
.distribution-table .table tbody td {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.distribution-table .table tbody .no-members-row td {
    text-align: center;
    color: #e0f2fe !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 1.25rem 1rem !important;
}
.member-amount.form-control.form-control-sm {
    background: #0b1220 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.member-amount.form-control.form-control-sm:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35) !important;
}
.member-percent-input.form-control.form-control-sm {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    max-width: 90px;
    margin: 0 auto;
}
.member-percent-input.form-control.form-control-sm:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.35) !important;
}
.distribution-table .btn-link.text-danger {
    color: #f87171 !important;
}
.distribution-table .btn-link.text-danger:hover {
    color: #fca5a5 !important;
}
.distribution-table .table tfoot {
    background: transparent !important;
}
.distribution-table .table tfoot tr {
    background: transparent !important;
    border-top: none !important;
}
.distribution-table .table tfoot td {
    border: none !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    padding: 2rem 1rem !important;
    text-align: center !important;
}
.distribution-footer {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.14)) !important;
    border-top: 2px solid var(--primary) !important;
}
.distribution-footer .table {
    background: transparent !important;
    border: none !important;
}
.distribution-footer .table tbody,
.distribution-footer .table tbody tr,
.distribution-footer .table tfoot,
.distribution-footer .table tfoot tr {
    background: transparent !important;
    border: none !important;
}
.distribution-footer .table tbody tr:hover {
    background: rgba(37, 99, 235, 0.08) !important;
}
.distribution-footer td {
    border: none !important;
    color: #e0f2fe !important;
    font-weight: 700 !important;
    padding: 1.1rem 1rem !important;
    font-size: 0.95rem !important;
    background: transparent !important;
}
.available-members-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.available-members-header {
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.25rem;
}
.available-members-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem;
}
.available-member-btn {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    transition: all 0.2s ease;
}
.available-member-btn:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.available-member-btn small {
    color: #94a3b8;
}

/* Members Modal */
.members-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.members-modal.d-none {
    display: none;
}
.members-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.members-modal-content {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 420px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.members-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
    color: #fff;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.members-modal-header h5 {
    color: #e0f2fe;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}
.btn-close-modal {
    background: rgba(255, 255, 255, 0.1);
    color: #e0f2fe !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.members-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}
.members-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.members-modal-item {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 10px;
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.members-modal-item:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.members-modal-item-info {
    flex: 1;
}
.members-modal-item-name {
    font-weight: 700;
    color: #e0f2fe;
    font-size: 0.95rem;
}
.members-modal-item-user {
    font-size: 0.8rem;
    color: #94a3b8;
}
.members-modal-item-icon {
    color: #22d3ee;
    font-size: 1.1rem;
}

/* Bootstrap Table Overrides */
.table-dark {
    color: #fff;
    background: #0f172a;
}
.table-dark thead th {
    color: #fff;
    background: #1a2332;
}
.table-dark tbody td,
.table-dark tbody th {
    color: #fff;
    background: #0f172a;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #1a2332;
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: #0f172a;
}
.table-hover tbody tr:hover {
    background-color: #1a2844;
    color: #fff;
}
.table-responsive {
    background: transparent;
}
.sortable-table {
    color: #fff;
    background: #0f172a;
}
.sortable-table thead th {
    color: #fff;
    background: #1a2332;
}
.sortable-table tbody td {
    color: #fff;
    background: #0f172a;
}
.sortable-table tbody tr:hover {
    background: #1a2844;
}
.table-sm td {
    color: #fff !important;
    background: #0f172a !important;
}
.table-sm thead th {
    color: #fff !important;
    background: #1a2332 !important;
}
.table-sm tbody tr:hover {
    background: #1a2844 !important;
}
.table-borderless {
    background: #0f172a !important;
    color: #fff !important;
}
.table-borderless thead th {
    background: #1a2332 !important;
    color: #fff !important;
}
.table-borderless tbody td {
    background: #0f172a !important;
    color: #fff !important;
}
.table-borderless tbody tr:hover {
    background: #1a2844 !important;
    color: #fff !important;
}
/* Kombinationen */
.table.table-sm {
    background: #0f172a !important;
}
.table.table-sm td {
    color: #fff !important;
    background: #0f172a !important;
}
.table.table-sm thead th {
    color: #fff !important;
    background: #1a2332 !important;
}
.table.table-borderless.table-sm td {
    color: #fff !important;
    background: #0f172a !important;
}
.table.table-borderless.table-sm thead th {
    color: #fff !important;
    background: #1a2332 !important;
}
.table.table-borderless.table-hover tbody tr:hover {
    background: #1a2844 !important;
    color: #fff !important;
}
.table.table-sm.table-hover tbody tr:hover {
    background: #1a2844 !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link { margin-bottom: 0.35rem; }
}
