.support-ticket-list {
    max-height: 65vh;
    overflow-y: auto;
}

.support-ticket--unread {
    border-left: 4px solid #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.support-ticket--unread .fw-semibold {
    font-weight: 700 !important;
}

/* ==========================================================================
   Support Ticket Timeline - Chat View
   ========================================================================== */
.support-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.support-timeline__item {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    padding: 16px 20px;
    border-radius: 18px;
    position: relative;
    animation: supportFadeIn 0.3s ease;
}

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

/* Müşteri mesajları - Sol */
.support-timeline__item--user {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-bottom-left-radius: 4px;
}

.support-timeline__item--user::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 16px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(99, 102, 241, 0.25);
}

/* Admin/Temsilci mesajları - Sağ */
.support-timeline__item--admin,
.support-timeline__item--agent {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-bottom-right-radius: 4px;
}

.support-timeline__item--admin::before,
.support-timeline__item--agent::before {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 16px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(34, 197, 94, 0.25);
}

.support-timeline__actor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.support-timeline__actor strong {
    font-size: 0.95rem;
    color: #1f2937;
}

.support-timeline__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.support-timeline__item--user .support-timeline__avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.support-timeline__item--admin .support-timeline__avatar,
.support-timeline__item--agent .support-timeline__avatar {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.support-timeline__message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    word-wrap: break-word;
}

.support-timeline__message p {
    margin: 0 0 8px;
}

.support-timeline__message p:last-child {
    margin-bottom: 0;
}

.support-timeline__attachments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.support-timeline__attachments a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0d6efd;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 6px;
    transition: background 0.2s ease;
}

.support-timeline__attachments a:hover {
    background: rgba(13, 110, 253, 0.2);
}
/* =============================================================
 * MAIN.CSS — NetGuard Ana Stil Dosyası
 * ============================================================= */

/* === GENEL === */
body { font-family: "Segoe UI", sans-serif; background-color: #f5f6fa; color: #333; margin: 0; overflow-x: hidden; }

/* 1) ADMIN PANEL (YAN MENÜ + ÜST BAR) */
.topbar { background: #1e1f26; height: 56px; color: #fff; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.sidebar { width: 260px; height: 100vh; position: fixed; top: 56px; left: 0; background-color: #1e1f26; transition: transform 0.3s ease; overflow-y: auto; overflow-x: hidden; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar .nav-link { display: flex; align-items: center; color: #aaa; padding: 10px 16px; text-decoration: none; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: #0d6efd; color: #fff; }
.sidebar .nav-link[aria-expanded="true"] .collapse-icon { transform: rotate(90deg); }
.sidebar .collapse-icon.bi-chevron-down { transform: rotate(90deg); }
.sidebar .collapse-icon.bi-chevron-right { transform: rotate(0deg); }
/* Ana menü ikonları - daha büyük ve şık, sabit genişlik */
.sidebar .nav-link > i:first-of-type { font-size: 1.35rem; width: 24px; min-width: 24px; text-align: center; transition: transform 0.2s ease; flex-shrink: 0; }
.sidebar .nav-link:hover > i:first-of-type { transform: scale(1.1); }
/* Chevron ikonu - sabit genişlik */
.sidebar .collapse-icon { width: 16px; min-width: 16px; font-size: 0.75rem; flex-shrink: 0; transition: transform 0.3s ease; }
/* Menü metni - esnek genişlik */
.sidebar .nav-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sidebar .sub-nav-link { 
    padding-left: 2rem !important; 
    font-size: 0.9rem; 
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: row !important;
}
.sidebar .sub-nav-link:hover { background: rgba(13, 110, 253, 0.1); color: #fff; }
.sidebar .sub-nav-link i { 
    font-size: 1rem; 
    width: 18px; 
    min-width: 18px; 
    max-width: 18px;
    text-align: center; 
    flex-shrink: 0;
    display: inline-block;
}
.sidebar .sub-nav-link > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar .nav-link i[class*="text-"] { opacity: 0.9; }
.sidebar .sub-nav-link:hover i[class*="text-"] { opacity: 1; }
/* Alt menü container - sabit layout */
.sidebar .collapse {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: height 0.25s ease-out;
    overflow: hidden;
}
.sidebar .collapse:not(.show) {
    display: none;
    height: 0;
}
.sidebar .collapse.show {
    display: block;
    height: auto;
}
.sidebar .collapse > li {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}
/* Collapse animasyonu için smooth geçiş - içerik gizli kalacak */
.sidebar .collapse.collapsing {
    height: 0;
    transition: height 0.25s ease-out;
    overflow: hidden;
    display: block;
}
/* Animasyon sırasında içeriği gizle - layout hesaplanır ama görünmez */
.sidebar .collapse.collapsing > li {
    visibility: hidden;
    opacity: 0;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
.sidebar .collapse.collapsing .sub-nav-link {
    visibility: hidden;
    opacity: 0;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
}
.sidebar .collapse.collapsing .sub-nav-link i {
    flex-shrink: 0 !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    display: inline-block !important;
}
/* Animasyon bittiğinde içeriği göster */
.sidebar .collapse.show > li,
.sidebar .collapse.show .sub-nav-link {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.15s ease-in;
}
.content { margin-left: 260px; margin-top: 56px; min-height: calc(100vh - 56px); background: #f5f6fa; overflow-x: hidden; max-width: calc(100vw - 260px); }
.content .container-fluid { max-width: 100%; overflow-x: hidden; }
.content .row { margin-left: 0; margin-right: 0; max-width: 100%; }
@media (max-width: 768px){ .sidebar{ transform: translateX(-260px); width: 260px; } .sidebar.show{ transform: translateX(0); } .content{ margin-left: 0; } }

/* 2) LANDING PAGE */
.hero { background: linear-gradient(135deg, #0d6efd 0%, #3a4b92 100%); color: #fff; text-align: center; padding: 120px 20px; }
.hero h1 { font-size: 48px; font-weight: 700; }
.hero p { font-size: 18px; margin-top: 20px; }
.features { padding: 80px 0; }
.feature-card { background: #fff; border-radius: 12px; box-shadow: 0 3px 8px rgba(0,0,0,0.08); padding: 30px; transition: all 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 5px 12px rgba(0,0,0,0.15); }

/* Logo ve Brand Stilleri */
.navbar-logo {
    height: 45px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
}

.topbar-logo {
    height: 42px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain;
}

.navbar-brand {
    font-size: 1.2rem !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

/* Login sayfası logo */
#loginPage .logo img {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}

#loginPage .logo span {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* 3) FIREWALL GRID */
.firewall-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; justify-items: center; align-items: center; margin: 60px 0; }
.fw-item { position: relative; background: #fff; border-radius: 12px; padding: 15px 10px 20px; width: 180px; text-align: center; box-shadow: 0 3px 6px rgba(0,0,0,0.1); transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease; }
.fw-item:hover { transform: scale(1.12); background: linear-gradient(145deg, #ffffff, #e8f0ff); box-shadow: 0 8px 20px rgba(13,110,253,0.3); }
.fw-name { display: block; font-weight: 600; font-size: 15px; color: #0d6efd; margin-bottom: 10px; }
.fw-item img { width: 140px; height: auto; object-fit: contain; filter: grayscale(40%); transition: all 0.4s ease; }
.fw-item:hover img { filter: none; transform: scale(1.08); }

/* 4) REGISTER & FOOTER */
.register-section { background: #fff; padding: 60px 30px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); max-width: 400px; margin: 60px auto; }
.landing-footer { background: #1e1f26; color: #ccc; text-align: center; padding: 30px 10px; font-size: 14px; }

/* 5) DARK MODE & THEME SWITCH */
.theme-toggle { margin-left: 15px; }
.theme-switch { height: 0; width: 0; visibility: hidden; }
.theme-label { cursor: pointer; width: 46px; height: 24px; background: #ddd; display: inline-block; border-radius: 30px; position: relative; transition: background 0.3s ease; }
.theme-label:after { content: ""; width: 20px; height: 20px; background: #fff; position: absolute; top: 2px; left: 2px; border-radius: 50%; transition: 0.3s; }
.theme-switch:checked + .theme-label { background: #0d6efd; }
.theme-switch:checked + .theme-label:after { left: 24px; }
.theme-label .sun, .theme-label .moon { position: absolute; top: 2px; font-size: 16px; line-height: 20px; }
.theme-label .sun { left: 6px; color: #f1c40f; }
.theme-label .moon { right: 6px; color: #f8f9fa; }

/* 6) LANGUAGE SELECTOR */
.language-selector { 
    margin-right: 10px; 
    position: relative;
}
.language-selector .form-select-sm { 
    font-size: 0.875rem; 
    padding: 0.25rem 0.5rem 0.25rem 2.2rem;
    min-width: 120px;
    /* Bayrak için padding */
    position: relative;
    /* Normal font */
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Türkçe seçiliyse bayrak göster */
.language-selector .form-select-sm.lang-tr {
    background-image: url("/assets/img/lang/turkey_lang.png");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.5rem 1rem;
    padding-left: 2.2rem;
}
/* İngilizce seçiliyse bayrak göster */
.language-selector .form-select-sm.lang-en {
    background-image: url("/assets/img/lang/united_lang.png");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.5rem 1rem;
    padding-left: 2.2rem;
}
/* Option elementleri - sadece metin, bayrak yok */
.language-selector option {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
}
/* Select içindeki text */
.language-selector .form-select {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === Firma Yönetimi - Lisans Bilgi Şerit Kartı === */
.license-info-strip {
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.license-info-strip .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
}
@media (min-width: 768px) {
    .license-info-strip .card-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }
}
.license-info-strip__left .strip-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}
.license-info-strip__left .strip-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0f172a;
}
.license-info-strip__left .strip-range {
    font-size: 0.95rem;
}
.license-info-strip__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}
.strip-stat {
    background: rgba(13, 110, 253, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}
.strip-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.strip-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.license-info-strip .status-chip {
    align-self: flex-start;
}
@media (min-width: 768px) {
    .license-info-strip .status-chip {
        align-self: center;
    }
}

/* === Firma Yönetimi - Lisans Kart Tasarımları === */
.license-hero-card {
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.license-main-card { box-shadow: 0 6px 18px rgba(15,23,42,0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.license-main-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,0.18); }
.license-hero-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 24px;
}
.license-hero-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}
.hero-info {
    flex: 1 1 220px;
}
.hero-info .license-hero-title {
    font-weight: 700;
    font-size: 1.45rem;
    margin-bottom: 4px;
    color: #0f172a;
}
.hero-info .license-hero-range {
    font-size: 0.9rem;
}
.hero-stats {
    flex: 1 1 240px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}
.hero-stat {
    background: rgba(13, 110, 253, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
}
.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.hero-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.hero-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    min-width: 180px;
}
.hero-actions .btn {
    min-width: 180px;
}
.pill-soft {
    background: rgba(13, 110, 253, 0.09);
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
}
.license-hero-modules {
    margin-top: 6px;
    display: none;
}
.license-hero-modules__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-module-chip {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(13, 110, 253, 0.04);
    min-width: 160px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-module-chip.is-active {
    border-color: rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.12);
    box-shadow: 0 14px 32px rgba(13, 110, 253, 0.18);
}
.hero-module-chip.is-passive {
    opacity: 0.75;
}
.hero-module-chip h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: #0f172a;
}
.hero-module-chip p {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
}
@media (max-width: 768px) {
    .hero-actions {
        align-items: stretch;
        min-width: 0;
    }
    .hero-actions .btn {
        min-width: 0;
    }
}

.license-purchase-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 768px) {
    .license-purchase-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.license-plan-grid {
    margin-top: 18px;
}
.license-plan-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 20px;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.license-plan-card:hover {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}
.license-plan-card.is-selected {
    border-color: rgba(13, 110, 253, 0.65);
    box-shadow: 0 20px 55px rgba(13, 110, 253, 0.18);
}
.license-plan-card__header {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
}
.license-plan-card__price .price-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}
.license-plan-card__price .price-sub {
    margin-top: 2px;
}
.license-plan-card__meta span + span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(15, 23, 42, 0.25);
    border-radius: 50%;
    margin: 0 6px;
}
.license-plan-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.license-feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.license-feature-card {
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(13, 110, 253, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.license-feature-card:hover {
    border-color: rgba(13, 110, 253, 0.45);
    background: rgba(13, 110, 253, 0.12);
    box-shadow: 0 14px 32px rgba(13, 110, 253, 0.15);
}
.feature-card { box-shadow: 0 6px 18px rgba(15,23,42,0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(15,23,42,0.18); }
.license-features-card { border-radius: 14px; box-shadow: 0 6px 18px rgba(15,23,42,0.08); }
.license-feature-card.is-active {
    border-color: rgba(13, 110, 253, 0.6);
    background: rgba(13, 110, 253, 0.18);
    box-shadow: 0 16px 36px rgba(13, 110, 253, 0.18);
}
.license-feature-card .form-check {
    display: flex;
    align-items: center;
    gap: 12px;
}
.license-feature-card .form-check-input {
    width: 48px;
    height: 24px;
    cursor: pointer;
}
.license-feature-card .form-check-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.license-feature-card .feature-title {
    font-weight: 600;
    color: #0f172a;
}
.license-feature-card .feature-price {
    font-size: 0.85rem;
    color: #0d6efd;
}
.module-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.module-card {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(13, 110, 253, 0.4);
}
.module-card.is-active {
    border-color: rgba(13, 110, 253, 0.4);
    background: rgba(239, 246, 255, 0.85);
}
.module-card.is-passive {
    opacity: 0.75;
}
.module-card__status {
    margin-bottom: 10px;
}
.module-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}
.module-card__desc {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
}

.license-order-summary {
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.04);
}

.purchase-highlight {
    animation: purchasePulse 1.2s ease;
}
@keyframes purchasePulse {
    0% { box-shadow: 0 0 0 rgba(13,110,253,0.35); }
    50% { box-shadow: 0 0 16px rgba(13,110,253,0.45); }
    100% { box-shadow: 0 0 0 rgba(13,110,253,0.0); }
}

/* === DARK MODE (üstteki her şeyi override etsin diye en sonda ve !important) === */
body.dark-mode { background-color: #121212 !important; color: #e1e1e1 !important; transition: background-color 0.3s ease, color 0.3s ease; }
body.dark-mode .navbar, body.dark-mode .topbar { background: #0f0f0f !important; color: #f1f1f1 !important; }
body.dark-mode .sidebar { background-color: #181818 !important; }
body.dark-mode .nav-link { color: #ccc !important; }
body.dark-mode .nav-link.active, body.dark-mode .nav-link:hover { color: #fff !important; background: #0d6efd !important; }
body.dark-mode .content { background-color: #1b1b1b !important; }
body.dark-mode .feature-card, body.dark-mode .fw-item, body.dark-mode .register-section { background-color: #222 !important; color: #e1e1e1 !important; box-shadow: 0 3px 8px rgba(255,255,255,0.05) !important; }
body.dark-mode .fw-name { color: #66b2ff !important; }
body.dark-mode .landing-footer { background: #0f0f0f !important; color: #999 !important; }
body.dark-mode .btn-primary { background-color: #0d6efd !important; border-color: #0d6efd !important; }
body.dark-mode .btn-primary:hover { background-color: #0b5ed7 !important; }

/* === DARK MODE - CARDS, FORMS, INPUTS, LABELS === */
body.dark-mode .card { background-color: #2d2d2d !important; border-color: #404040 !important; color: #e1e1e1 !important; }
body.dark-mode .card-header { background-color: #252525 !important; border-bottom-color: #404040 !important; color: #e1e1e1 !important; }
body.dark-mode .card-body { background-color: #2d2d2d !important; color: #e1e1e1 !important; }
body.dark-mode .card-title, body.dark-mode .card-subtitle { color: #e1e1e1 !important; }

body.dark-mode .license-hero-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}
body.dark-mode .hero-stat {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}
body.dark-mode .hero-stat-label {
    color: #94a3b8 !important;
}
body.dark-mode .hero-stat-value {
    color: #e2e8f0 !important;
}
body.dark-mode .pill-soft {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #e2e8f0 !important;
}
body.dark-mode .license-plan-card {
    background: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}
body.dark-mode .license-plan-card.is-selected {
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 20px 55px rgba(59, 130, 246, 0.25) !important;
}
body.dark-mode .license-plan-card__price .price-total {
    color: #f8fafc !important;
}
body.dark-mode .license-plan-card__desc {
    color: #cbd5f5 !important;
}
body.dark-mode .license-feature-card {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}
body.dark-mode .license-feature-card.is-active {
    background: rgba(59, 130, 246, 0.28) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
}
body.dark-mode .license-feature-card .feature-title {
    color: #e2e8f0 !important;
}
body.dark-mode .module-card {
    background: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #e2e8f0 !important;
}
body.dark-mode .module-card.is-active {
    background: rgba(59, 130, 246, 0.22) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}
body.dark-mode .module-card__desc {
    color: #cbd5f5 !important;
}
body.dark-mode .license-order-summary {
    background: rgba(59, 130, 246, 0.18) !important;
}
body.dark-mode .license-info-strip {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%) !important;
}
body.dark-mode .strip-stat {
    background: rgba(59, 130, 246, 0.22) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}
body.dark-mode .strip-stat-label {
    color: #94a3b8 !important;
}
body.dark-mode .strip-stat-value {
    color: #e2e8f0 !important;
}
body.dark-mode .license-info-strip .strip-title {
    color: #f8fafc !important;
}
body.dark-mode .license-info-strip .strip-range {
    color: #cbd5f5 !important;
}
body.dark-mode .hero-module-chip {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #e2e8f0 !important;
}
body.dark-mode .hero-module-chip.is-active {
    background: rgba(59, 130, 246, 0.26) !important;
    border-color: rgba(59, 130, 246, 0.48) !important;
}

/* Form Controls */
body.dark-mode .form-control, 
body.dark-mode .form-select, 
body.dark-mode .form-select-sm,
body.dark-mode input[type="text"], 
body.dark-mode input[type="email"], 
body.dark-mode input[type="password"], 
body.dark-mode input[type="number"], 
body.dark-mode input[type="time"], 
body.dark-mode textarea,
body.dark-mode select { 
    background-color: #1a1a1a !important; 
    border-color: #404040 !important; 
    color: #e1e1e1 !important; 
}
body.dark-mode .form-control:focus, 
body.dark-mode .form-select:focus { 
    background-color: #1a1a1a !important; 
    border-color: #0d6efd !important; 
    color: #e1e1e1 !important; 
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important; 
}
body.dark-mode .form-control::placeholder { color: #888 !important; }
body.dark-mode .form-control:disabled, 
body.dark-mode .form-select:disabled { 
    background-color: #252525 !important; 
    opacity: 0.6 !important; 
}

/* Labels */
body.dark-mode .form-label,
body.dark-mode label { color: #d1d1d1 !important; }

/* Headings */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 { color: #e1e1e1 !important; }
body.dark-mode .text-dark { color: #e1e1e1 !important; }
body.dark-mode .fw-bold, 
body.dark-mode .fw-semibold { color: #e1e1e1 !important; }

/* Background Colors */
body.dark-mode .bg-white { background-color: #2d2d2d !important; }
body.dark-mode .bg-light { background-color: #252525 !important; }
body.dark-mode .bg-secondary { background-color: #404040 !important; }

/* Text Colors */
body.dark-mode .text-muted { color: #a0a0a0 !important; }
body.dark-mode .text-secondary { color: #b0b0b0 !important; }
body.dark-mode .text-dark { color: #e1e1e1 !important; }

/* Tabs */
body.dark-mode .nav-tabs { border-bottom-color: #404040 !important; }
body.dark-mode .nav-tabs .nav-link { color: #ccc !important; border-color: transparent !important; }
body.dark-mode .nav-tabs .nav-link:hover { background-color: #2d2d2d !important; border-color: #404040 #404040 transparent !important; color: #e1e1e1 !important; }
body.dark-mode .nav-tabs .nav-link.active { background-color: #2d2d2d !important; border-color: #404040 #404040 transparent !important; color: #e1e1e1 !important; }

/* Input Groups */
body.dark-mode .input-group-text { background-color: #252525 !important; border-color: #404040 !important; color: #e1e1e1 !important; }
body.dark-mode .btn-outline-secondary { border-color: #404040 !important; color: #e1e1e1 !important; }
body.dark-mode .btn-outline-secondary:hover { background-color: #404040 !important; border-color: #404040 !important; color: #e1e1e1 !important; }

/* Alerts */
body.dark-mode .alert { background-color: #2d2d2d !important; border-color: #404040 !important; color: #e1e1e1 !important; }
body.dark-mode .alert-success { background-color: rgba(25, 135, 84, 0.2) !important; border-color: rgba(25, 135, 84, 0.5) !important; color: #8dd4a6 !important; }
body.dark-mode .alert-danger { background-color: rgba(220, 53, 69, 0.2) !important; border-color: rgba(220, 53, 69, 0.5) !important; color: #f5b7b7 !important; }
body.dark-mode .alert-warning { background-color: rgba(255, 193, 7, 0.2) !important; border-color: rgba(255, 193, 7, 0.5) !important; color: #ffd54f !important; }
body.dark-mode .alert-info { background-color: rgba(13, 110, 253, 0.2) !important; border-color: rgba(13, 110, 253, 0.5) !important; color: #7db3ff !important; }

/* Badges */
body.dark-mode .badge { color: #fff !important; }

/* Tables - General */
body.dark-mode .table { 
    color: #e1e1e1 !important; 
    background-color: #2d2d2d !important;
}
body.dark-mode .table thead th { 
    background-color: #252525 !important;
    border-bottom-color: #404040 !important; 
    color: #e1e1e1 !important; 
}
body.dark-mode .table tbody td {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}
body.dark-mode .table tbody tr { 
    background-color: #2d2d2d !important;
    border-color: #404040 !important; 
}
body.dark-mode .table tbody tr:hover { 
    background-color: #353535 !important; 
}
body.dark-mode .table tbody tr:nth-child(even) {
    background-color: #2a2a2a !important;
}
body.dark-mode .table tbody tr:nth-child(even):hover {
    background-color: #3a3a3a !important;
}

/* Bootstrap table variants */
body.dark-mode .table-light {
    background-color: #252525 !important;
}
body.dark-mode .table-light thead th {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
}
body.dark-mode .table-hover tbody tr:hover {
    background-color: #353535 !important;
}

/* VPN Oturumları Table */
body.dark-mode #vpnOturumlari .vpn-table {
    background-color: #2d2d2d !important;
    color: #e1e1e1 !important;
}
body.dark-mode #vpnOturumlari .vpn-table thead th {
    background-color: #252525 !important;
    color: #0d6efd !important;
    border-bottom-color: #0d6efd !important;
}
body.dark-mode #vpnOturumlari .vpn-table tbody td {
    background-color: #2d2d2d !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #vpnOturumlari .vpn-table tbody tr {
    background-color: #2d2d2d !important;
}
body.dark-mode #vpnOturumlari .vpn-table tbody tr:hover {
    background-color: #353535 !important;
}

/* Active VPN Table */
body.dark-mode #vpnAktifOturumlar .table {
    background-color: #2d2d2d !important;
}
body.dark-mode #vpnAktifOturumlar .table thead {
    background-color: #252525 !important;
}
body.dark-mode #vpnAktifOturumlar .table thead th {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #vpnAktifOturumlar .table tbody td {
    background-color: #2d2d2d !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #vpnAktifOturumlar .table tbody tr {
    background-color: #2d2d2d !important;
}
body.dark-mode #vpnAktifOturumlar .table tbody tr:hover {
    background-color: #353535 !important;
}

/* Mesai Dışı VPN Table */
body.dark-mode #mesaiDisiVpn .table {
    background-color: #2d2d2d !important;
}
body.dark-mode #mesaiDisiVpn .table thead {
    background-color: #252525 !important;
}
body.dark-mode #mesaiDisiVpn .table thead th {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #mesaiDisiVpn .table tbody td {
    background-color: #2d2d2d !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #mesaiDisiVpn .table tbody tr {
    background-color: #2d2d2d !important;
}
body.dark-mode #mesaiDisiVpn .table tbody tr:hover {
    background-color: #353535 !important;
}

/* Uzun Süreli VPN Table */
body.dark-mode #uzunSureliVpn .table {
    background-color: #2d2d2d !important;
}
body.dark-mode #uzunSureliVpn .table thead {
    background-color: #252525 !important;
}
body.dark-mode #uzunSureliVpn .table thead th {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #uzunSureliVpn .table tbody td {
    background-color: #2d2d2d !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #uzunSureliVpn .table tbody tr {
    background-color: #2d2d2d !important;
}
body.dark-mode #uzunSureliVpn .table tbody tr:hover {
    background-color: #353535 !important;
}

/* Raporlama Table */
body.dark-mode #raporOnizlemeTablo table {
    background-color: #2d2d2d !important;
}
body.dark-mode #raporOnizlemeTablo thead th {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
}
body.dark-mode #raporOnizlemeTablo tbody tr:nth-child(even) {
    background-color: #2a2a2a !important;
}
body.dark-mode #raporOnizlemeTablo td,
body.dark-mode #raporOnizlemeTablo th {
    background-color: transparent !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}

/* Kullanıcı Listesi Table */
body.dark-mode #kullaniciListesi {
    background-color: #2d2d2d !important;
}
body.dark-mode #kullaniciListesi th,
body.dark-mode #kullaniciListesi td {
    background-color: #2d2d2d !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}
body.dark-mode #kullaniciListesi tr:hover {
    background-color: #353535 !important;
}

/* Assigned Companies Badge Stilleri */
#kullaniciListesi .badge {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.dark-mode #kullaniciListesi .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

body.dark-mode #kullaniciListesi .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Assigned Companies sütunu için özel stil */
#kullaniciListesi td:nth-child(7) {
    max-width: 400px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* Table responsive wrapper */
body.dark-mode .table-responsive {
    background-color: #2d2d2d !important;
}

/* Pagination */
body.dark-mode .pagination {
    background-color: transparent !important;
}
body.dark-mode .page-link {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}
body.dark-mode .page-link:hover {
    background-color: #353535 !important;
    border-color: #404040 !important;
    color: #fff !important;
}
body.dark-mode .page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}
body.dark-mode .page-item.disabled .page-link {
    background-color: #252525 !important;
    border-color: #404040 !important;
    color: #666 !important;
}

/* Avatar circles (user initials) */
body.dark-mode .avatar,
body.dark-mode [class*="avatar"] {
    background-color: #404040 !important;
    color: #e1e1e1 !important;
}

/* Badge circles (session counts) */
body.dark-mode .badge.bg-primary {
    background-color: #0d6efd !important;
    color: #fff !important;
}
body.dark-mode .badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}
body.dark-mode .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}
body.dark-mode .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}
body.dark-mode .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}
body.dark-mode .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Card body that contains tables */
body.dark-mode .card-body {
    background-color: #2d2d2d !important;
}
body.dark-mode .card-body.p-0 {
    background-color: transparent !important;
}
body.dark-mode .card {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

/* Spinner in tables */
body.dark-mode .spinner-border {
    border-color: currentColor !important;
    border-right-color: transparent !important;
}

/* Text muted in tables */
body.dark-mode .text-muted {
    color: #a0a0a0 !important;
}

/* Card headers with gradient backgrounds in dark mode */
body.dark-mode .card-header[style*="background"] {
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%) !important;
    color: #e1e1e1 !important;
}

/* Ensure gradient card headers are readable in dark mode */
body.dark-mode .card-header.bg-primary,
body.dark-mode .card-header.bg-success {
    background: #2d2d2d !important;
    border-bottom-color: #404040 !important;
}

/* Modal */
body.dark-mode .modal-content { background-color: #2d2d2d !important; color: #e1e1e1 !important; border-color: #404040 !important; }
body.dark-mode .modal-header { border-bottom-color: #404040 !important; }
body.dark-mode .modal-footer { border-top-color: #404040 !important; }

/* Log Content (pre elements) */
/* Light theme (default) */
.log-content,
pre.log-content {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

.log-content .text-muted {
    color: #6c757d !important;
}

/* Dark theme */
body.dark-mode .log-content,
body.dark-mode pre.log-content {
    background-color: #1a1a1a !important;
    color: #e1e1e1 !important;
    border-color: #404040 !important;
}

body.dark-mode .log-content .text-muted {
    color: #888 !important;
}
body.dark-mode .modal-backdrop { background-color: rgba(0, 0, 0, 0.8) !important; }

/* Dropdown */
body.dark-mode .dropdown-menu { background-color: #2d2d2d !important; border-color: #404040 !important; }
body.dark-mode .dropdown-item { color: #e1e1e1 !important; }
body.dark-mode .dropdown-item:hover { background-color: #404040 !important; color: #fff !important; }
body.dark-mode .dropdown-item.active { background-color: #0d6efd !important; }

/* Form Check & Switch */
body.dark-mode .form-check-input { background-color: #1a1a1a !important; border-color: #404040 !important; }
body.dark-mode .form-check-input:checked { background-color: #0d6efd !important; border-color: #0d6efd !important; }
body.dark-mode .form-switch .form-check-input { background-color: #404040 !important; }

/* Language Selector Dark Mode */
body.dark-mode .language-selector .form-select { background-color: #1a1a1a !important; border-color: #404040 !important; color: #e1e1e1 !important; }
body.dark-mode .language-selector .form-select:focus { background-color: #1a1a1a !important; border-color: #0d6efd !important; color: #e1e1e1 !important; box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important; }
body.dark-mode .language-selector .form-select option { background-color: #2d2d2d !important; color: #e1e1e1 !important; }

/* Small text */
body.dark-mode small, 
body.dark-mode .small { color: #a0a0a0 !important; }

/* VPN Özet Sayfası - List Group ve Tables için dark mode */
body.dark-mode #vpnOzetPage .list-group {
    background-color: #2d2d2d !important;
}
body.dark-mode #vpnOzetPage .list-group-item {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}
body.dark-mode #vpnOzetPage .list-group-item:hover {
    background-color: #353535 !important;
}
body.dark-mode #vpnOzetPage .bg-light {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
}
body.dark-mode #vpnOzetPage .border-bottom {
    border-bottom-color: #404040 !important;
}
body.dark-mode #vpnOzetPage .text-muted {
    color: #a0a0a0 !important;
}

/* Firewall Özet Sayfası - Dark mode */
body.dark-mode #firewallOzetPage {
    background-color: #1b1b1b !important;
}

body.dark-mode #firewallOzetPage .card {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode #firewallOzetPage .card-header {
    background-color: #252525 !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}

body.dark-mode #firewallOzetPage .stat-icon-wrapper {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
}

body.dark-mode #firewallOzetPage .text-muted {
    color: #a0a0a0 !important;
}

body.dark-mode #firewallOzetPage h5,
body.dark-mode #firewallOzetPage h6 {
    color: #e1e1e1 !important;
}

/* IPS Performans Tablosu Stilleri */
#ipsPerformanceTable {
    font-size: 0.875rem;
}

#ipsPerformanceTable th {
    font-size: 0.8rem;
    white-space: nowrap;
    vertical-align: middle;
    padding: 10px 8px;
}

#ipsPerformanceTable td {
    padding: 8px;
    vertical-align: middle;
}

#ipsPerformanceTable tbody tr:hover {
    background-color: #f8f9fa;
}

body.dark-mode #ipsPerformanceTable tbody tr:hover {
    background-color: #2d2d2d !important;
}

body.dark-mode #ipsPerformanceTable {
    color: #e1e1e1;
}

body.dark-mode #ipsPerformanceTable thead {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
}

body.dark-mode #ipsPerformanceTable tbody tr {
    border-color: #404040 !important;
}

/* =============================================
 * Firewall Interface Sayfası Stilleri
 * ============================================= */
#firewallInterface .category-header {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    user-select: none;
}

#firewallInterface .category-header:hover {
    background-color: #e9ecef !important;
}

#firewallInterface .category-header td {
    padding: 12px 16px !important;
    font-weight: 600;
    vertical-align: middle;
}

#firewallInterface .category-toggle {
    color: #0d6efd;
    transition: transform 0.2s;
}

#firewallInterface .category-toggle:hover {
    transform: scale(1.1);
}

#firewallInterface .category-row {
    transition: background-color 0.2s;
}

#firewallInterface .category-row:hover {
    background-color: #f6f9ff !important;
}

#firewallInterface .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: 500;
}

/* Dark mode */
body.dark-mode #firewallInterface .category-header {
    background-color: #252525 !important;
    border-bottom-color: #404040 !important;
}

body.dark-mode #firewallInterface .category-header:hover {
    background-color: #2a2a2a !important;
}

body.dark-mode #firewallInterface .category-header td {
    color: #e1e1e1 !important;
}

body.dark-mode #firewallInterface .category-row:hover {
    background-color: #353535 !important;
}

/* =============================================
 * Firewall Policy Sayfası Stilleri
 * ============================================= */
#firewallPolicy .group-header {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
    cursor: pointer;
    user-select: none;
}

#firewallPolicy .group-header:hover {
    background-color: #e9ecef !important;
}

#firewallPolicy .group-header td {
    padding: 12px 16px !important;
    font-weight: 600;
    vertical-align: middle;
}

#firewallPolicy .group-toggle {
    color: #0d6efd;
    transition: transform 0.2s;
}

#firewallPolicy .group-toggle:hover {
    transform: scale(1.1);
}

#firewallPolicy .policy-row {
    transition: background-color 0.2s;
}

#firewallPolicy .policy-row:hover {
    background-color: #f6f9ff !important;
}

#firewallPolicy .table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

#firewallPolicy .table tbody td {
    vertical-align: middle;
    padding: 8px 12px;
}

#firewallPolicy .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: 500;
}

/* Dark mode */
body.dark-mode #firewallPolicy .group-header {
    background-color: #252525 !important;
    border-bottom-color: #404040 !important;
}

body.dark-mode #firewallPolicy .group-header:hover {
    background-color: #2a2a2a !important;
}

body.dark-mode #firewallPolicy .group-header td {
    color: #e1e1e1 !important;
}

body.dark-mode #firewallPolicy .policy-row:hover {
    background-color: #353535 !important;
}

body.dark-mode #firewallPolicy .table thead th {
    background-color: #252525 !important;
    color: #e1e1e1 !important;
}
/* VPN Statistics tabloları için dark mode */
body.dark-mode #top10VpnList,
body.dark-mode #top10MesaiList,
body.dark-mode #top10UzunList {
    background-color: #2d2d2d !important;
}
body.dark-mode #top10VpnList .list-group-item,
body.dark-mode #top10MesaiList .list-group-item,
body.dark-mode #top10UzunList .list-group-item {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}
body.dark-mode #top10VpnList .list-group-item:hover,
body.dark-mode #top10MesaiList .list-group-item:hover,
body.dark-mode #top10UzunList .list-group-item:hover {
    background-color: #353535 !important;
}

/* Raporlama sayfası - Switch'ler ve border'lar için dark mode */
body.dark-mode .border { border-color: #404040 !important; }
body.dark-mode .border-bottom { border-bottom-color: #404040 !important; }
body.dark-mode .border-top { border-top-color: #404040 !important; }

/* OTP Management */
.otp-card {
    background: var(--ng-card, #fff);
    border-radius: 16px;
}

.otp-card .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.otp-card .btn {
    font-size: 0.85rem;
}

.otp-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 172px;
}

.otp-qr-canvas {
    width: 160px;
    height: 160px;
}

.otp-qr-canvas img,
.otp-qr-canvas canvas {
    width: 160px;
    height: 160px;
    display: block;
}

#otpSecretText {
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Firewall Performance Thresholds */
.fw-perf-overview {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(118, 75, 162, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
}

.fw-perf-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fw-perf-badge {
    background: rgba(102, 126, 234, 0.15);
    color: #4338ca;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.fw-threshold-grid {
    display: grid;
    gap: 1.25rem;
}

.fw-threshold-item {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.06);
}

.fw-threshold-item:hover {
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.12);
}

.fw-threshold-header {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.1rem;
}

.fw-threshold-header h6 {
    margin: 0;
    font-size: 1rem;
}

.fw-threshold-body label {
    font-size: 0.85rem;
    color: #475569;
}

.fw-threshold-input-group .input-group-text {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
    font-weight: 600;
    color: #4338ca;
}

.fw-threshold-input-group .form-control:disabled {
    background: rgba(226, 232, 240, 0.6);
    cursor: not-allowed;
}

.fw-perf-notify {
    border-radius: 20px;
}

.fw-perf-notify .card-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 255, 0.88));
}

@media (max-width: 991px) {
    .fw-perf-notify {
        min-height: unset;
    }
}

/* Firewall Performance - Dark Mode */
body.dark-mode .fw-perf-overview {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.12));
    border-color: rgba(118, 75, 162, 0.3);
}

body.dark-mode .fw-perf-badge {
    background: rgba(102, 126, 234, 0.25);
    color: #a5b4fc;
}

body.dark-mode .fw-threshold-item {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .fw-threshold-item:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .fw-threshold-header h6 {
    color: #e1e1e1 !important;
}

body.dark-mode .fw-threshold-body label {
    color: #a0a0a0;
}

body.dark-mode .fw-threshold-input-group .input-group-text {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
}

body.dark-mode .fw-threshold-input-group .form-control:disabled {
    background: rgba(64, 64, 64, 0.6);
}

body.dark-mode .fw-perf-notify {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode .fw-perf-notify .card-body {
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.95), rgba(37, 37, 37, 0.88)) !important;
}

body.dark-mode .fw-perf-notify h6,
body.dark-mode .fw-perf-notify label {
    color: #e1e1e1 !important;
}

body.dark-mode .fw-perf-notify .border {
    border-color: #404040 !important;
}

/* Report Recipients Section - Dark Mode */
body.dark-mode .report-recipients-section {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode .report-recipients-section h6 {
    color: #e1e1e1 !important;
}

body.dark-mode .recipient-users-list {
    background: #252525 !important;
    border-color: #404040 !important;
}

body.dark-mode .recipient-users-container .form-check {
    border-bottom-color: #404040 !important;
}

body.dark-mode .recipient-users-container label {
    color: #e1e1e1 !important;
}

body.dark-mode .recipient-users-container .text-muted {
    color: #a0a0a0 !important;
}

body.dark-mode .extra-email-input {
    background: #1a1a1a !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}

body.dark-mode .extra-emails-container .badge {
    background: #0d6efd !important;
}

/* === DARK MODE - BLACKLIST PAGES === */
body.dark-mode #blacklistSearchPage .card,
body.dark-mode #blacklistEndpointPage .card {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode #blacklistSearchPage .card-header,
body.dark-mode #blacklistEndpointPage .card-header {
    background-color: #252525 !important;
    border-color: #404040 !important;
}

body.dark-mode #blacklistSearchPage .card-header.bg-primary,
body.dark-mode #blacklistEndpointPage .card-header.bg-primary {
    background-color: #0d6efd !important;
}

body.dark-mode #blacklistSearchPage .card-header.bg-warning {
    background-color: rgba(255, 193, 7, 0.75) !important;
    color: #1a1a1a !important;
}

body.dark-mode .result-found {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

body.dark-mode .result-clean {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

/* Code elements in dark mode */
body.dark-mode code {
    background-color: #1a1a1a !important;
    color: #f472b6 !important;
    padding: 2px 6px;
    border-radius: 4px;
}

/* List group items for dark mode */
body.dark-mode .list-group-item {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e1e1e1 !important;
}

body.dark-mode .list-group-item:hover {
    background-color: #353535 !important;
}

/* Btn close for dark mode */
body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dropdown menu dark mode */
body.dark-mode .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode .dropdown-item {
    color: #e1e1e1 !important;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: #353535 !important;
    color: #fff !important;
}

body.dark-mode .dropdown-divider {
    border-color: #404040 !important;
}

/* Readonly inputs dark mode */
body.dark-mode .form-control[readonly],
body.dark-mode input[readonly] {
    background-color: #1a1a1a !important;
    color: #a0a0a0 !important;
    opacity: 1 !important;
}

/* Bootstrap Icons - Iconların görünür olmasını sağla (CDN CSS zaten font-face içeriyor) */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block !important;
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}