/* =========================================
   STIG PREMIUM 36 - SCHWARZER HINTERGRUND
   Exakt wie Screenshot: Schwarz + dunkle Cards
   ========================================= */

:root {
    /* Diamond Solution CI Colors */
    --stig-dark-bg: #000000;
    --stig-card-bg: rgba(20, 20, 25, 0.9);
    --stig-border: rgba(255, 255, 255, 0.08);
    --stig-primary: #6EADD1; /* Diamond Solution CI */
    --stig-darker: #5A9FC0; /* CI Darker */
    --stig-hover: #7EC3E0; /* CI Hover */
    --stig-accent: #BCD5E8; /* Hellblau für Highlights */
    --stig-text: #EDEDED; /* Soft Gray */
    --stig-green: #7ed957;
    --stig-button: #6EADD1; /* CI-konform */
    --stig-yellow: #fbbf24;
    --stig-red: #ef4444;
    
    /* Override main.css link colors - Diamond Solution CI */
    --link-color-h: 200;
    --link-color-s: 52%;
    --link-color-l: 62%;
    --link-color: var(--link-color-h) var(--link-color-s) var(--link-color-l);
    --link-color-hover: var(--link-color-h) var(--link-color-s) 72%;
    
    /* Override main.css base colors - Diamond Solution CI */
    --base-h: 200;
    --base-s: 52%;
    --base-l: 62%;
    --base-rgb: 110, 173, 209;
}

/* ========== SCHWARZER HINTERGRUND (WIE SCREENSHOT) ========== */
body {
    background: #000000 !important;
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(5, 5, 10, 0.95) 100%),
        url('../images/diamond-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    color: #EDEDED !important;
}

p {
    color: #9ca3af !important;
}

/* ========== SIDEBAR (DUNKLER) ========== */
.dashboard-sidebar {
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.98) 0%, rgba(5, 5, 10, 0.98) 100%) !important;
    backdrop-filter: blur(15px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-menu li a {
    color: #9ca3af !important;
    transition: all 0.3s ease !important;
}

.sidebar-menu li a:hover {
    background: rgba(110, 173, 209, 0.1) !important;
    color: #EDEDED !important;
    border-left: 3px solid rgba(110, 173, 209, 0.5) !important;
}

.sidebar-menu li a.active {
    background: linear-gradient(90deg, rgba(110, 173, 209, 0.15) 0%, transparent 100%) !important;
    color: #6EADD1 !important;
    border-left: 3px solid #6EADD1 !important;
}

/* ========== DASHBOARD NAV (SCHMALER + DUNKLER) ========== */
.dashboard-nav {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 15px 30px !important;
    min-height: 65px !important;
}

/* Seitentitel im Header */
.dashboard-nav h4 {
    color: #EDEDED !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ========== CARDS (MIT GRADIENT - WIE SCREENSHOT) ========== */
.card, .custom--card {
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.95) 0%, rgba(15, 15, 20, 0.9) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
}

.card-body {
    color: #ffffff !important;
}

.card-header {
    background: rgba(15, 15, 20, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* ========== AUTH PAGES (LOGIN/REGISTER) ========== */
.account-form {
    background: linear-gradient(90deg, #000000 0%, #222222 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 30px !important;
}

/* ========== VERIFICATION PAGES ========== */
.verification-code-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100%;
    max-width: 600px;
}

.verification-area {
    background: linear-gradient(90deg, #000000 0%, #222222 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.verification-area h5 {
    color: #EDEDED !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.verification-text {
    color: #9ca3af !important;
}

.verification-area .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Verification Code ::after Element - Transparent für CI */
.verification-code::after {
    background-color: transparent !important;
}

/* Verification Code Input - CI-konform */
.verification-code input {
    color: #EDEDED !important;
}

/* Verification Code Boxes - CI-konform */
.verification-code span {
    background: rgba(30, 30, 46, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    color: #9ca3af !important;
}

/* ========== FORMS (DUNKLER) ========== */
.form-control, .form--control {
    background: rgba(15, 15, 20, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.form-control:focus, .form--control:focus {
    background: rgba(20, 20, 25, 0.9) !important;
    border-color: #6EADD1 !important;
    box-shadow: 0 0 0 3px rgba(110, 173, 209, 0.1) !important;
}

/* ========== AUTOFILL FIX - CHROME/SAFARI ========== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #EDEDED !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 15, 20, 0.8) inset !important;
    box-shadow: 0 0 0 1000px rgba(15, 15, 20, 0.8) inset !important;
    border: 1px solid rgba(110, 173, 209, 0.3) !important;
    background-color: rgba(15, 15, 20, 0.8) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Firefox Autofill */
input:-moz-autofill,
textarea:-moz-autofill,
select:-moz-autofill {
    background-color: rgba(15, 15, 20, 0.8) !important;
    color: #EDEDED !important;
    border: 1px solid rgba(110, 173, 209, 0.3) !important;
}

/* ========== ALERT BOXES - DARK CI (EDEL & AUFFÄLLIG) ========== */

/* Alert Success (Grün) */
.alert-success,
.alert--success {
    background: linear-gradient(135deg, rgba(126, 217, 87, 0.15), rgba(5, 150, 105, 0.1)) !important;
    border: 1px solid rgba(126, 217, 87, 0.4) !important;
    border-left: 4px solid #7ed957 !important;
    color: #EDEDED !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 16px rgba(126, 217, 87, 0.2) !important;
}

/* Alert Warning (Gelb/Orange) */
.alert-warning,
.alert--warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1)) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-left: 4px solid #fbbf24 !important;
    color: #EDEDED !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2) !important;
}

/* Alert Danger (Rot) */
.alert-danger,
.alert--danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1)) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-left: 4px solid #ef4444 !important;
    color: #EDEDED !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2) !important;
}

/* Alert Info (Blau) */
.alert-info,
.alert--info {
    background: linear-gradient(135deg, rgba(110, 173, 209, 0.15), rgba(90, 159, 192, 0.1)) !important;
    border: 1px solid rgba(110, 173, 209, 0.4) !important;
    border-left: 4px solid #6EADD1 !important;
    color: #EDEDED !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 16px rgba(110, 173, 209, 0.2) !important;
}

/* Alert Primary (Blau - wie Info) */
.alert-primary,
.alert--primary {
    background: linear-gradient(135deg, rgba(110, 173, 209, 0.15), rgba(90, 159, 192, 0.1)) !important;
    border: 1px solid rgba(110, 173, 209, 0.4) !important;
    border-left: 4px solid #6EADD1 !important;
    color: #EDEDED !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 16px rgba(110, 173, 209, 0.2) !important;
}

/* Alert Text & Icons */
.alert strong {
    color: #EDEDED !important;
    font-weight: 700 !important;
}

.alert a {
    color: #6EADD1 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.alert a:hover {
    color: #7EC3E0 !important;
}

.alert i {
    margin-right: 8px !important;
}

/* Close Button für Alerts */
.alert .btn-close,
.alert .close {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
}

.alert .btn-close:hover,
.alert .close:hover {
    opacity: 1 !important;
}

/* ========== PASSWORD TOGGLE ICON ========== */
.password-wrapper {
    position: relative !important;
    display: block !important;
}

.password-toggle-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    padding: 5px !important;
    user-select: none !important;
}

.password-toggle-icon:hover {
    color: #6EADD1 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.password-toggle-icon:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* Passwort-Input mit Toggle-Icon - Padding rechts */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 40px !important;
}

/* ========== USER DROPDOWN - CHROME & SAFARI FIX ========== */
.nav-header-link .dropdown-wrapper {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Hover (funktioniert in Chrome) */
.has-dropdown:hover .dropdown-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

/* Click/Touch State (funktioniert in Safari) */
.has-dropdown.dropdown-open .dropdown-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

/* Focus Fallback */
.has-dropdown .link:focus ~ .dropdown-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

.form-label, label {
    color: #ffffff !important;
}

select option {
    background: #0a0a0f !important;
    color: #ffffff !important;
}

/* ========== BUTTONS - CI FARBEN (#6EADD1) ========== */
.btn--base, .btn--primary, .btn--info {
    background: linear-gradient(135deg, #6EADD1, #5A9FC0) !important;
    border: none !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.btn--base:hover, .btn--primary:hover, .btn--info:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(110, 173, 209, 0.4) !important;
    background: linear-gradient(135deg, #7EC3E0, #6EADD1) !important;
}

.btn--secondary {
    background: rgba(20, 20, 25, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* ========== TABLES (DUNKLER) ========== */
.table th {
    color: #b0b0b0 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.table td {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
}

/* ========== ACCORDION (DUNKLER) ========== */
.accordion-item, .transaction-item {
    background: rgba(20, 20, 25, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.accordion-button {
    background: transparent !important;
    color: #ffffff !important;
}

.accordion-body {
    background: rgba(10, 10, 15, 0.8) !important;
    color: #ffffff !important;
}

/* ========== BADGES ========== */
.badge--success {
    background: rgba(126, 217, 87, 0.15) !important;
    border: 1px solid var(--stig-green) !important;
    color: var(--stig-green) !important;
}

.badge--warning {
    background: rgba(251, 191, 36, 0.15) !important;
    border: 1px solid var(--stig-yellow) !important;
    color: var(--stig-yellow) !important;
}

.badge--danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid var(--stig-red) !important;
    color: var(--stig-red) !important;
}

.badge--info {
    background: rgba(110, 173, 209, 0.15) !important;
    border: 1px solid #6EADD1 !important;
    color: #6EADD1 !important;
}

/* ========== ICONS ========== */
.icon-success {
    background: linear-gradient(135deg, var(--stig-green), #059669) !important;
}

.icon-danger {
    background: linear-gradient(135deg, var(--stig-red), #dc2626) !important;
}

.icon-warning {
    background: linear-gradient(135deg, var(--stig-yellow), #f59e0b) !important;
}

/* ========== MODAL (DUNKLER) ========== */
.modal-content {
    background: rgba(15, 15, 20, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ========== LIST GROUPS ========== */
.list-group-item {
    background: rgba(15, 15, 20, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    background: rgba(20, 20, 25, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6EADD1, #5A9FC0) !important;
    border-color: #6EADD1 !important;
}

/* ========== DASHBOARD SPECIFIC (SCHWARZER STIL) ========== */
.dashboard-container,
.dashboard-container-fluid {
    background: transparent !important;
}

.bg--lights {
    background: rgba(20, 20, 25, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ========== FILTER AREA ========== */
.filter-area {
    background: rgba(20, 20, 25, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.custom-input-box input,
.custom-input-box select {
    background: rgba(15, 15, 20, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ========== GATEWAY CARDS ========== */
.gateway-card {
    background: rgba(20, 20, 25, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.payment-item {
    background: rgba(15, 15, 20, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.payment-item:hover {
    border-color: rgba(110, 173, 209, 0.5) !important;
    background: rgba(110, 173, 209, 0.1) !important;
}

/* ========== CAPTION LIST ========== */
.caption-list li {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ========== INPUT GROUPS ========== */
.input-group-text {
    background: rgba(20, 20, 25, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* ========== SCROLLBAR - DIAMOND CI ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 20, 0.5);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6EADD1, #5A9FC0);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7EC3E0, #6EADD1);
    box-shadow: 0 0 8px rgba(110, 173, 209, 0.5);
}

/* ========== DASHBOARD-SPEZIFISCHE GRADIENTEN ========== */
/* DEAKTIVIERT - Inline-Styles haben Vorrang für neue CI */
/* .dashboard-inner > div > div[style*="background"] {
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.95) 0%, rgba(15, 15, 20, 0.9) 100%) !important;
} */

/* Stärkerer Blur für bessere Lesbarkeit */
.dashboard-inner > div > div {
    backdrop-filter: blur(20px) !important;
}

/* ========== TEXT COLORS ========== */
.text--base {
    color: #6EADD1 !important;
}

.text-muted {
    color: #9ca3af !important;
}

/* ========== SIDEBAR MENU ICONS - CI FARBEN ========== */
.sidebar-menu li a img {
    filter: brightness(0.7) saturate(0.8);
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover img {
    filter: brightness(1) saturate(1);
}

.sidebar-menu li a.active img {
    filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 5px rgba(110, 173, 209, 0.5));
}

/* Icons in Menü mit CI-Farbe */
.sidebar-menu li a i {
    color: #9ca3af !important;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover i,
.sidebar-menu li a.active i {
    color: #6EADD1 !important;
}

/* ========== SIDEBAR CONTAINER ========== */
.dashboard-sidebar {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
}

/* Scrollbar für Sidebar */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6EADD1, #5A9FC0);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7EC3E0, #6EADD1);
}

/* ========== SIDEBAR ACCORDION MENU - SCHÖN & ÜBERSICHTLICH ========== */

/* Hauptmenü Items */
.sidebar-menu > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    letter-spacing: 0.3px;
}

/* Hauptmenü Icons */
.sidebar-menu > li > a i {
    width: 24px;
    text-align: center;
    margin-right: 14px;
    font-size: 17px;
}

/* Menu Group Styling */
.menu-group {
    position: relative;
    margin-bottom: 4px;
}

.menu-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    position: relative;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
}

/* Toggle Icon (Chevron) */
.menu-toggle .toggle-icon {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.menu-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.menu-toggle:hover .toggle-icon {
    opacity: 1;
}

/* Submenu Container */
.submenu {
    list-style: none;
    padding: 8px 0;
    margin: 0 0 8px 0;
    display: none;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid rgba(110, 173, 209, 0.2);
    margin-left: 15px;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

/* Submenu Items */
.submenu li {
    padding: 0;
}

.submenu li a {
    padding: 11px 20px 11px 50px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
    border-left: none !important;
    position: relative;
}

/* Submenu Icons */
.submenu li a i {
    width: 18px;
    text-align: center;
    margin-right: 12px;
    font-size: 13px;
    opacity: 0.7;
}

/* Bullet Point für Submenu */
.submenu li a::before {
    content: '•';
    position: absolute;
    left: 30px;
    color: #6EADD1;
    font-size: 18px;
    opacity: 0.4;
}

/* Submenu Hover */
.submenu li a:hover {
    background: rgba(110, 173, 209, 0.08) !important;
    color: #BCD5E8 !important;
    padding-left: 52px !important;
}

.submenu li a:hover::before {
    opacity: 1;
    left: 32px;
}

.submenu li a:hover i {
    opacity: 1;
}

/* Submenu Active */
.submenu li a.active {
    background: rgba(110, 173, 209, 0.15) !important;
    color: #6EADD1 !important;
    font-weight: 600 !important;
    padding-left: 52px !important;
}

.submenu li a.active::before {
    opacity: 1;
    color: #6EADD1;
}

.submenu li a.active i {
    opacity: 1;
    color: #6EADD1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    body {
        background-attachment: scroll;
    }
}
