:root {
    --bg-dark: #0b1020;
    --bg-sidebar: #07111d;
    --bg-card: #111827;
    --text-main: #a1a8ae;
    --text-light: #ffffff;
    --kt-primary: #ec5251;
    --kt-primary-hover: #d64241;
    --kt-secondary: #37bed7;
    --kt-secondary-hover: rgba(55, 190, 215, 0.1);
    --sidebar-width: 260px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-sidebar);
    color: var(--text-main);
    padding-top: 80px; /* Navbar height */
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Navbar */
.custom-navbar {
    background-color: var(--bg-sidebar) !important;
    height: 80px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.2);
    border-bottom: 1px dashed rgba(55, 190, 215, 0.25);
}

.custom-navbar .nav-link, .custom-navbar .navbar-brand {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover, .custom-navbar .navbar-brand:hover {
    color: var(--kt-secondary) !important;
}

.profile-img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.profile-link {
    display: flex;
    align-items: center;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--kt-primary), #ff7b7b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(236, 82, 81, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 80px; /* Navbar height */
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 5px 0 20px 0;
    background-color: var(--bg-sidebar) !important;
    color: var(--text-main);
    box-shadow: 4px 0 24px 0 rgba(0, 0, 0, 0.2);
    border-top-right-radius: 16px;
    border-right: 1px dashed rgba(55, 190, 215, 0.25);
}

.sidebar .nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: var(--kt-secondary);
    background-color: var(--kt-secondary-hover);
}

.sidebar .nav-link.active {
    color: var(--text-light);
    background-color: var(--kt-primary);
    box-shadow: 0 0 12px rgba(236, 82, 81, 0.4);
    transition: box-shadow 0.3s ease;
}

.sidebar .nav-link.active:hover {
    box-shadow: 0 0 20px rgba(236, 82, 81, 0.6);
}

/* Main Content */
.main-content {
    background-color: var(--bg-dark);
    background-image: linear-gradient(to bottom left, rgba(236, 82, 81, 0.08) 0%, rgba(55, 190, 215, 0.08) 100%);
    min-height: calc(100vh - 80px);
    border-top-left-radius: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--kt-primary) 0%, var(--kt-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Card */
.main-card {
    background: var(--bg-card);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-table-container {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.glass-table-container:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kt-primary) 0%, var(--kt-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(236, 82, 81, 0.3);
}

h1, h2, h3, h4, h5, h6, .card-title {
    color: var(--text-light) !important;
}

/* Custom Buttons */
.custom-btn {
    background-color: var(--kt-primary);
    color: var(--text-light);
    border: none;
    transition: all 0.3s ease;
}

.custom-btn:hover {
    background-color: var(--kt-primary-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 82, 81, 0.4) !important;
}

.kt-btn-secondary {
    background-color: transparent;
    color: var(--kt-secondary);
    border: 1px solid var(--kt-secondary);
    transition: all 0.3s ease;
}

.kt-btn-secondary:hover {
    background-color: var(--kt-secondary-hover);
    color: var(--kt-secondary);
}

.kt-text-secondary {
    color: var(--kt-secondary) !important;
}

.text-muted {
    color: var(--text-main) !important;
}

/* Wizard Steps */
.kt-wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.kt-wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    z-index: 1;
    transform: translateY(-50%);
}

.kt-step {
    position: relative;
    z-index: 2;
    background-color: var(--bg-card);
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.kt-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-sidebar);
    border: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.kt-step-active {
    color: var(--kt-primary);
}

.kt-step-active .kt-step-circle {
    border-color: var(--kt-primary);
    background-color: var(--kt-primary);
    color: var(--text-light);
    box-shadow: 0 0 10px rgba(236, 82, 81, 0.4);
}

.kt-step-completed {
    color: var(--kt-secondary);
}

.kt-step-completed .kt-step-circle {
    border-color: var(--kt-secondary);
    background-color: var(--kt-secondary);
    color: var(--bg-dark);
}

/* Wizard Cards (Choices) */
.kt-choice-card {
    background-color: var(--bg-sidebar);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-light);
}

.kt-choice-card:hover {
    border-color: var(--kt-secondary);
}

.kt-choice-card.active {
    border-color: var(--kt-primary);
    background-color: rgba(236, 82, 81, 0.1);
    box-shadow: 0 0 15px rgba(236, 82, 81, 0.2);
}

/* Form inputs in wizard */
.kt-input {
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(55, 190, 215, 0.25);
    color: var(--text-light);
}

.kt-input:focus {
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 0.25rem rgba(236, 82, 81, 0.25);
}

/* ===== Drafts Table ===== */
.drafts-count-badge {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== Dashboard Styles ===== */
.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.trend-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.extra-small {
    font-size: 0.7rem;
}

/* Search box */
.kt-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 340px;
    min-width: 180px;
}

.kt-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kt-secondary);
    font-size: 0.85rem;
    pointer-events: none;
}

.kt-search-input {
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(55, 190, 215, 0.25);
    color: var(--text-light);
    border-radius: 22px;
    padding: 8px 16px 8px 36px;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kt-search-input::placeholder {
    color: rgba(161, 168, 174, 0.6);
}

.kt-search-input:focus {
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    border-color: var(--kt-secondary);
    box-shadow: 0 0 0 0.2rem rgba(55, 190, 215, 0.18);
    outline: none;
}

/* Sortable th */
.drafts-thead .sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.drafts-thead .sortable:hover {
    color: #fff;
}

.drafts-thead .sortable.sort-asc,
.drafts-thead .sortable.sort-desc {
    color: #fff;
}

.sort-icon {
    display: inline-block;
    font-size: 0.7rem;
    opacity: 0.45;
    transition: opacity 0.15s;
}

.sortable:hover .sort-icon,
.sortable.sort-asc .sort-icon,
.sortable.sort-desc .sort-icon {
    opacity: 1;
}

/* No results row */
.drafts-no-results td {
    text-align: center;
    padding: 32px 16px !important;
    color: var(--text-main);
    font-size: 0.9rem;
}


.drafts-table-wrapper {
    background-color: var(--bg-card);
    border-radius: 14px;
    border: 1px solid rgba(55, 190, 215, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow-x: auto;          /* yatay scroll aktif */
    overflow-y: visible;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}

/* Dark-tema scrollbar (Webkit) */
.drafts-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.drafts-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-sidebar);
    border-radius: 0 0 14px 14px;
}

.drafts-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(55, 190, 215, 0.35);
    border-radius: 4px;
}

.drafts-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 190, 215, 0.6);
}

/* Firefox */
.drafts-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(55, 190, 215, 0.35) var(--bg-sidebar);
}

.drafts-table {
    color: var(--text-main);
    margin-bottom: 0;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

/* Thead: Kodla Türkiye accent */
.drafts-thead tr th {
    background: transparent !important;
    color: var(--kt-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap;
}

/* Tbody rows base transition */
.drafts-table tbody tr.drafts-row, .table-row {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.drafts-table tbody td {
    padding: 14px 16px;
    border-bottom: none;
    vertical-align: middle;
}

/* Tablo satır metni — koyu temada okunabilir açık renk */
.kt-table-row-text {
    color: #e5e7eb !important;
    opacity: 1 !important;
}

/* Content Type Badges */
.content-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: rgba(236, 82, 81, 0.12);
    color: var(--kt-primary);
    border: 1px solid rgba(236, 82, 81, 0.25);
    white-space: nowrap;
}

.content-type-badge.type-reels {
    background-color: rgba(55, 190, 215, 0.12);
    color: var(--kt-secondary);
    border-color: rgba(55, 190, 215, 0.25);
}

.content-type-badge.type-post {
    background-color: rgba(147, 112, 219, 0.12);
    color: #b39ddb;
    border-color: rgba(147, 112, 219, 0.25);
}

.content-type-badge.type-story {
    background-color: rgba(255, 183, 77, 0.12);
    color: #ffb74d;
    border-color: rgba(255, 183, 77, 0.25);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-draft {
    background-color: rgba(161, 168, 174, 0.12);
    color: #a1a8ae;
    border: 1px solid rgba(161, 168, 174, 0.2);
}

.status-review {
    background-color: rgba(255, 183, 77, 0.12);
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.25);
}

.status-approved {
    background-color: rgba(102, 187, 106, 0.12);
    color: #66bb6a;
    border: 1px solid rgba(102, 187, 106, 0.25);
}

/* ===== Media Thumb (Görsel / Video) ===== */
.media-thumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(236, 82, 81, 0.1);
    color: var(--kt-primary);
    border: 1px dashed rgba(236, 82, 81, 0.3);
    white-space: nowrap;
}

.media-thumb-reels {
    background-color: rgba(55, 190, 215, 0.1);
    color: var(--kt-secondary);
    border-color: rgba(55, 190, 215, 0.3);
}

.media-thumb-post {
    background-color: rgba(147, 112, 219, 0.1);
    color: #b39ddb;
    border-color: rgba(147, 112, 219, 0.3);
}

.media-thumb-story {
    background-color: rgba(255, 183, 77, 0.1);
    color: #ffb74d;
    border-color: rgba(255, 183, 77, 0.3);
}

/* ===== Action Buttons (Ön İzle / Paylaş) ===== */
.btn-preview {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: transparent;
    color: var(--kt-secondary);
    border: 1px solid rgba(55, 190, 215, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-preview:hover {
    background-color: rgba(55, 190, 215, 0.1);
    color: var(--kt-secondary);
    border-color: var(--kt-secondary);
    transform: translateY(-1px);
}

.btn-ig-share {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: rgba(236, 82, 81, 0.12);
    color: var(--kt-primary);
    border: 1px solid rgba(236, 82, 81, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-ig-share:hover {
    background-color: var(--kt-primary);
    color: #fff;
    border-color: var(--kt-primary);
    box-shadow: 0 4px 14px rgba(236, 82, 81, 0.35);
    transform: translateY(-1px);
}

/* ===== Draft Preview Modal ===== */
.kt-modal-content {
    background-color: var(--bg-card);
    border: 1px solid rgba(55, 190, 215, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.kt-modal-header {
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid rgba(55, 190, 215, 0.15);
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
}

.kt-modal-footer {
    background-color: var(--bg-sidebar);
    border-top: 1px solid rgba(55, 190, 215, 0.15);
    border-radius: 0 0 16px 16px;
    padding: 16px 24px;
}

.kt-preview-card {
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(55, 190, 215, 0.12);
    border-radius: 12px;
    padding: 16px;
    min-height: 320px;
}

/* Görsel / Video önizleme kutusu (yeni) */
.kt-media-preview-box {
    background: linear-gradient(135deg, rgba(236, 82, 81, 0.07), rgba(55, 190, 215, 0.07));
    border: 1px dashed rgba(55, 190, 215, 0.25);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    color: var(--text-main);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.kt-media-preview-box.has-file {
    border-color: rgba(55, 190, 215, 0.5);
    background: rgba(55, 190, 215, 0.05);
}

/* Düzenlenebilir metin taslağı textarea */
.kt-draft-textarea {
    resize: vertical;
    min-height: 220px;
    flex: 1;
    line-height: 1.7;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.kt-draft-textarea:focus {
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    border-color: var(--kt-secondary);
    box-shadow: 0 0 0 0.2rem rgba(55, 190, 215, 0.15);
}

/* Dosya Yükle butonu */
.btn-media-upload {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(55, 190, 215, 0.1);
    color: var(--kt-secondary);
    border: 1px solid rgba(55, 190, 215, 0.35);
    transition: all 0.2s ease;
}

.btn-media-upload:hover {
    background-color: rgba(55, 190, 215, 0.2);
    color: var(--kt-secondary);
    border-color: var(--kt-secondary);
}

/* Sil butonu */
.btn-media-delete {
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 20px;
    background-color: rgba(236, 82, 81, 0.1);
    color: var(--kt-primary);
    border: 1px solid rgba(236, 82, 81, 0.3);
    transition: all 0.2s ease;
}

.btn-media-delete:hover {
    background-color: var(--kt-primary);
    color: #fff;
    border-color: var(--kt-primary);
}

/* Kaydet butonu */
.btn-save-draft {
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(55, 190, 215, 0.15), rgba(55, 190, 215, 0.05));
    color: var(--kt-secondary);
    border: 1px solid rgba(55, 190, 215, 0.4);
    transition: all 0.25s ease;
}

.btn-save-draft:hover {
    background: rgba(55, 190, 215, 0.25);
    color: var(--kt-secondary);
    border-color: var(--kt-secondary);
    box-shadow: 0 4px 14px rgba(55, 190, 215, 0.2);
    transform: translateY(-1px);
}

.btn-save-draft:active {
    transform: translateY(0);
}

/* Eski kt-preview-text-box (geriye dönük uyumluluk) */
.kt-preview-text-box {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    min-height: 64px;
}

/* ===== Instagram Share Toast ===== */
.kt-toast {
    background: linear-gradient(135deg, rgba(236, 82, 81, 0.9), rgba(55, 190, 215, 0.85));
    backdrop-filter: blur(8px);
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 320px;
}

/* ===== Trendler Sayfası Stilleri ===== */
.custom-nav-pills .nav-link {
    color: var(--text-main);
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(55, 190, 215, 0.15);
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.custom-nav-pills .nav-link:hover {
    color: var(--kt-secondary);
    border-color: var(--kt-secondary);
}

.custom-nav-pills .nav-link.active {
    background-color: var(--kt-primary) !important;
    color: var(--text-light) !important;
    border-color: var(--kt-primary);
    box-shadow: 0 4px 12px rgba(236, 82, 81, 0.3);
}

/* Konu Kartları */
.kt-topic-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(55, 190, 215, 0.1);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kt-topic-card:hover {
    border-color: var(--kt-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.kt-topic-card.active {
    border-color: var(--kt-primary);
    background-color: rgba(236, 82, 81, 0.05);
}

/* Trend İçerik Kartları */
.kt-trend-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.kt-trend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.trend-card-media {
    position: relative;
    height: 160px;
    background-color: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trend-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.trend-card-body {
    padding: 20px;
    flex-grow: 1;
}

.trend-card-footer {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Puanlama Sistemi */
.rating-dots {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.rating-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(55, 190, 215, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-dot:hover, .rating-dot.active {
    background-color: var(--kt-primary);
    border-color: var(--kt-primary);
    box-shadow: 0 0 8px rgba(236, 82, 81, 0.5);
}

.rating-dot.selected {
    background-color: var(--kt-secondary);
    border-color: var(--kt-secondary);
}

/* Etiket Seçimi */
.trend-tag-check {
    display: none;
}

.trend-tag-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.trend-tag-check:checked + .trend-tag-label {
    background-color: rgba(55, 190, 215, 0.15);
    border-color: var(--kt-secondary);
    color: var(--kt-secondary);
}

.btn-create-from-trend {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-create-from-trend:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(236, 82, 81, 0.3);
}
/* ===== Ayarlar Sayfası Stilleri ===== */
.settings-nav .list-group-item {
    background-color: transparent;
    color: var(--text-main);
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.settings-nav .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.settings-nav .list-group-item.active {
    background-color: rgba(236, 82, 81, 0.1);
    color: var(--kt-primary);
    border-left-color: var(--kt-primary);
}

.settings-nav .list-group-item i {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.settings-nav .list-group-item.active i {
    opacity: 1;
    color: var(--kt-primary);
}

/* Custom Switch */
.custom-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.custom-switch .form-check-input:checked {
    background-color: var(--kt-secondary);
    border-color: var(--kt-secondary);
}

.custom-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(55, 190, 215, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Form Validation UI */
.kt-input:invalid {
    border-color: var(--kt-primary) !important;
}

.kt-input:valid:focus {
    border-color: var(--kt-secondary) !important;
}

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

.rotating {
    animation: rotate 1s linear infinite;
}

.rotating i {
    display: inline-block;
}

/* API Keys Filter Buttons */
#api-filter-buttons .btn {
    border-color: rgba(55, 190, 215, 0.2);
    color: var(--text-main);
    transition: all 0.3s ease;
}

#api-filter-buttons .btn:hover {
    border-color: var(--kt-secondary);
    color: var(--kt-secondary);
}

#api-filter-buttons .btn.active {
    background-color: var(--kt-primary) !important;
    border-color: var(--kt-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(236, 82, 81, 0.3);
}



.collapse-icon {
    transition: transform 0.2s ease;
}

/* Glassmorphism Table Styling (Common) */
.glass-table {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    background: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
}

.glass-row {
    background: rgba(255, 255, 255, 0.015) !important;
    transition: all 0.2s ease !important;
}

.glass-row td {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 14px 16px !important;
}

.glass-row td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px 0 0 12px !important;
}

.glass-row td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 12px 12px 0 !important;
}

.glass-row:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.api-category-header td {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    padding: 20px 10px 10px 10px !important;
}

.api-category-header:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}


/* ═══════════════════════════════════════════════════════════════
   Dashboard – KPI Cards
═══════════════════════════════════════════════════════════════ */
.dash-kpi-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.dash-kpi-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.kpi-icon-wrap {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.kpi-blue   { background: rgba(99,102,241,.18);  color: #818cf8; }
.kpi-green  { background: rgba(16,185,129,.18);  color: #34d399; }
.kpi-amber  { background: rgba(245,158,11,.18);  color: #fbbf24; }
.kpi-purple { background: rgba(168,85,247,.18);  color: #c084fc; }
.kpi-value  { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 4px; }
.kpi-label  { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.kpi-hint   { font-size: .72rem; color: #6366f1; margin-top: 8px; opacity: .7; transition: opacity .2s; }
.dash-kpi-card:hover .kpi-hint { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   Dashboard – Shared Panel
═══════════════════════════════════════════════════════════════ */
.dash-panel {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.dash-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-panel-title { font-size: .85rem; font-weight: 600; color: #e5e7eb; margin: 0; }
.dash-panel-body  { padding: 16px 20px; }

/* ═══════════════════════════════════════════════════════════════
   Dashboard – Activity List
═══════════════════════════════════════════════════════════════ */
.dash-activity-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.dash-activity-item {
    display: flex; align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background .15s;
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-item:hover { background: rgba(255,255,255,0.03); }

/* ═══════════════════════════════════════════════════════════════
   Dashboard – Quick Action Buttons
═══════════════════════════════════════════════════════════════ */
.dash-quick-btn { border-radius: 8px; font-size: .82rem; font-weight: 600; padding: 9px 18px; transition: all .2s ease; }
.dash-quick-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; border: none; box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.dash-quick-primary:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.dash-quick-secondary {
    background: rgba(255,255,255,0.06); color: #d1d5db;
    border: 1px solid rgba(255,255,255,0.10);
}
.dash-quick-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   Chart – Period Toggle Buttons
═══════════════════════════════════════════════════════════════ */
.chart-period-group {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 3px;
}
.chart-period-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.chart-period-btn:hover { color: #e5e7eb; background: rgba(255,255,255,0.06); }
.chart-period-btn.active {
    background: rgba(99,102,241,0.25);
    color: #a5b4fc;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.35);
}

/* ═══════════════════════════════════════════════════════════════
   Chart – Custom Interactive Legend
═══════════════════════════════════════════════════════════════ */
.chart-custom-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.chart-legend-all,
.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.chart-legend-all { color: #c4b5fd; border-color: rgba(99,102,241,0.3); }
.chart-legend-all.active { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.chart-legend-item:hover,
.chart-legend-all:hover { background: rgba(255,255,255,0.09); color: #e5e7eb; }
.chart-legend-item.active { color: #e5e7eb; background: rgba(255,255,255,0.07); }
.chart-legend-item.inactive {
    opacity: 0.38;
    text-decoration: line-through;
    background: transparent;
}
.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════
   Wizard – Validation Styles
   ═══════════════════════════════════════════════════════════════ */
.invalid-container {
    transition: all 0.3s ease;
}

.invalid-container.is-invalid {
    /* Container itself no longer has a border */
}

.kt-choice-card.is-invalid {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

.invalid-container .invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

.invalid-container.is-invalid .invalid-feedback {
    display: block;
}

/* ==========================================================================
   Unified Table and Badge Styling System
   ========================================================================== */

/* Unified Glassmorphic Table Row */


.table-row td {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 14px 16px !important;
    font-size: 0.85rem !important;
}

.table-row td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px 0 0 8px !important;
}

.table-row td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Hover Effect: Smooth translation, glowing shadow, and color blend */
.table-row:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateX(3px) translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.role-badge-admin {
    background-color: rgba(55, 190, 215, 0.12) !important;
    color: var(--kt-secondary) !important;
    border: 1px solid rgba(55, 190, 215, 0.25) !important;
}

.role-badge-editor {
    background-color: rgba(102, 187, 106, 0.12) !important;
    color: #66bb6a !important;
    border: 1px solid rgba(102, 187, 106, 0.25) !important;
}

.news-title { color: #f3f7ff !important; }
.news-summary { color: #aeb8c7 !important; }
.news-source { color: #8ea0b8 !important; }
.category-chip {
  color: #c7d2e3;
  border: 1px solid rgba(120, 150, 190, 0.24);
  background: rgba(16, 24, 40, 0.55);
  cursor: pointer;
}
.category-chip.active {
  color: #f8fbff;
  background: linear-gradient(180deg, #1b6fd8, #1557a8);
  border-color: transparent;
}

/* ==========================================================================
   Kontrast ve Okunabilirlik Düzeltmeleri — Koyu Tema Global Override
   Tüm modal, dropdown, select, form, badge, alert, carousel bileşenlerini kapsar.
   ========================================================================== */

/* ── Bootstrap Dropdown Menu ──────────────────────────────────────────────── */
.dropdown-menu {
    background-color: #141e30 !important;
    border: 1px solid rgba(55, 190, 215, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
}

.dropdown-item {
    color: #d1d5db !important;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(55, 190, 215, 0.12) !important;
    color: #ffffff !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--kt-primary) !important;
    color: #ffffff !important;
}

.dropdown-item.text-danger {
    color: #f87171 !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(236, 82, 81, 0.15) !important;
    color: #ef4444 !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── form-select / native select ─────────────────────────────────────────── */
.form-select {
    background-color: var(--bg-sidebar) !important;
    color: #e5e7eb !important;
    border-color: rgba(55, 190, 215, 0.25) !important;
}

.form-select:focus {
    background-color: var(--bg-sidebar) !important;
    color: #ffffff !important;
    border-color: var(--kt-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(236, 82, 81, 0.22) !important;
}

.form-select option,
select option {
    background-color: #141e30 !important;
    color: #e5e7eb !important;
}

.form-select option:disabled {
    color: #6b7280 !important;
}

/* ── Bootstrap Modal global override ─────────────────────────────────────── */
.modal-content {
    background-color: var(--bg-card) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(55, 190, 215, 0.18) !important;
}

.modal-header {
    background-color: var(--bg-sidebar) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.modal-title {
    color: #ffffff !important;
}

.modal-body {
    color: #d1d5db;
}

.modal-body p,
.modal-body label,
.modal-body small {
    color: #d1d5db !important;
}

.modal-footer {
    background-color: var(--bg-sidebar) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ── Form label & control (dark theme global) ────────────────────────────── */
.form-label {
    color: #9ca3af !important;
    font-size: 0.875rem;
}

.form-control {
    background-color: var(--bg-sidebar) !important;
    color: #e5e7eb !important;
    border-color: rgba(55, 190, 215, 0.22) !important;
}

.form-control::placeholder {
    color: rgba(156, 163, 175, 0.55) !important;
}

.form-control:focus {
    background-color: var(--bg-sidebar) !important;
    color: #ffffff !important;
    border-color: var(--kt-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(236, 82, 81, 0.2) !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #6b7280 !important;
}

textarea.form-control {
    color: #e5e7eb !important;
}

/* ── Form check label ────────────────────────────────────────────────────── */
.form-check-label {
    color: #d1d5db !important;
}

/* ── Bootstrap Alerts in dark theme ──────────────────────────────────────── */
.alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

.alert-danger {
    background-color: rgba(236, 82, 81, 0.15) !important;
    border-color: rgba(236, 82, 81, 0.3) !important;
    color: #fca5a5 !important;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fde68a !important;
}

.alert-info {
    background-color: rgba(55, 190, 215, 0.12) !important;
    border-color: rgba(55, 190, 215, 0.28) !important;
    color: #7dd3fc !important;
}

/* ── Badge contrast fixes ────────────────────────────────────────────────── */
.badge.bg-secondary {
    background-color: rgba(107, 114, 128, 0.28) !important;
    color: #d1d5db !important;
}

.badge.bg-warning.text-dark {
    color: #1f2937 !important;
}

/* ── Filter buttons (drafts, published, api-keys) ────────────────────────── */
#drafts-filter-buttons .btn,
#published-filter-buttons .btn {
    color: #a1a8ae !important;
    border-color: rgba(55, 190, 215, 0.2) !important;
}

#drafts-filter-buttons .btn:hover,
#published-filter-buttons .btn:hover {
    color: var(--kt-secondary) !important;
    border-color: var(--kt-secondary) !important;
    background-color: rgba(55, 190, 215, 0.08) !important;
}

#drafts-filter-buttons .btn.active,
#published-filter-buttons .btn.active {
    background-color: var(--kt-primary) !important;
    border-color: var(--kt-primary) !important;
    color: #ffffff !important;
}

/* ── btn-outline-secondary global dark override ──────────────────────────── */
.btn-outline-secondary {
    color: #a1a8ae !important;
    border-color: rgba(161, 168, 174, 0.3) !important;
}

.btn-outline-secondary:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-outline-secondary.active {
    color: #ffffff !important;
    background-color: var(--kt-primary) !important;
    border-color: var(--kt-primary) !important;
}

/* ── Input-group addon buttons ───────────────────────────────────────────── */
.input-group .btn-outline-secondary {
    color: #9ca3af !important;
    border-color: rgba(55, 190, 215, 0.25) !important;
    background-color: var(--bg-sidebar) !important;
}

.input-group .btn-outline-secondary:hover {
    color: #ffffff !important;
    background-color: rgba(55, 190, 215, 0.15) !important;
    border-color: var(--kt-secondary) !important;
}

/* ── Bootstrap Tooltip ───────────────────────────────────────────────────── */
.tooltip .tooltip-inner {
    background-color: #1a2236 !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(55, 190, 215, 0.2);
    font-size: 0.8rem;
    max-width: 280px;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #1a2236 !important;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #1a2236 !important;
}

/* ── Bootstrap Popover ───────────────────────────────────────────────────── */
.popover {
    background-color: #1a2236 !important;
    border: 1px solid rgba(55, 190, 215, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.popover-header {
    background-color: rgba(55, 190, 215, 0.1) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.popover-body {
    color: #d1d5db !important;
}

/* ── Carousel captions ───────────────────────────────────────────────────── */
.carousel-item { color: #ffffff; }

.carousel-caption {
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 8px;
    padding: 12px 16px;
}

.carousel-caption h1, .carousel-caption h2, .carousel-caption h3,
.carousel-caption h4, .carousel-caption h5, .carousel-caption h6,
.carousel-caption p {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* ── Glass table header & muted text ─────────────────────────────────────── */
.glass-table thead tr th { color: var(--kt-secondary) !important; }
.glass-table .text-muted   { color: #9ca3af !important; }

/* ── API key rows ────────────────────────────────────────────────────────── */
.api-category-header td .fw-bold { color: #e5e7eb !important; }
.api-key-row .text-muted         { color: #9ca3af !important; }

/* ── Settings nav ────────────────────────────────────────────────────────── */
.settings-nav .list-group-item        { color: #a1a8ae; }
.settings-nav .list-group-item:hover  { color: #ffffff !important; background-color: rgba(255,255,255,0.05) !important; }
.settings-nav .list-group-item.active { color: var(--kt-primary) !important; }

/* ── Wizard step labels ──────────────────────────────────────────────────── */
.kt-step small           { color: #9ca3af; font-size: 0.7rem; }
.kt-step-active small    { color: var(--kt-primary); }
.kt-step-completed small { color: var(--kt-secondary); }

/* ── Wizard choice cards ─────────────────────────────────────────────────── */
.kt-choice-card h6                    { color: #ffffff !important; }
.kt-choice-card small,
.kt-choice-card .text-muted           { color: #9ca3af !important; }

/* ── Trend cards ─────────────────────────────────────────────────────────── */
.kt-trend-card .trend-card-body h6,
.kt-trend-card .trend-card-body .fw-bold   { color: #f3f4f6 !important; }
.kt-trend-card .trend-card-body small,
.kt-trend-card .trend-card-body .text-muted,
.trend-card-footer .text-muted             { color: #9ca3af !important; }

/* ── Topic cards ─────────────────────────────────────────────────────────── */
.kt-topic-card h5, .kt-topic-card h6  { color: #f3f4f6 !important; }
.kt-topic-card .text-muted            { color: #9ca3af !important; }

/* ── List group (general) ────────────────────────────────────────────────── */
.list-group-item {
    background-color: transparent;
    color: #d1d5db;
    border-color: rgba(255, 255, 255, 0.08);
}
.list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

/* ── hr inside dark cards/modals ─────────────────────────────────────────── */
.card hr, .modal hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
}

/* ── Bootstrap table CSS vars ────────────────────────────────────────────── */
.table {
    --bs-table-color: #d1d5db;
    --bs-table-bg: transparent;
    --bs-table-striped-color: #d1d5db;
    --bs-table-hover-color: #ffffff;
    color: #d1d5db;
}

/* ── text-* utility readability (dark theme) ─────────────────────────────── */
.text-info    { color: #67e8f9 !important; }
.text-warning { color: #fbbf24 !important; }
.text-success { color: #34d399 !important; }
.text-danger  { color: #f87171 !important; }

/* ── Navbar profile dropdown specifically ────────────────────────────────── */
.custom-navbar .dropdown-menu {
    background-color: #141e30 !important;
    margin-top: 8px;
    border-radius: 10px;
}
.custom-navbar .dropdown-item {
    color: #d1d5db !important;
    padding: 8px 16px;
}
.custom-navbar .dropdown-item:hover {
    background-color: rgba(55, 190, 215, 0.1) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Dark Mode Contrast & Readability Overrides
   ========================================================================== */

/* Modals */
.modal-content, .kt-modal-content {
    background: #141e30 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.modal-header, .modal-footer, .kt-modal-header, .kt-modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.modal-title {
    color: #ffffff !important;
}

/* Select & Options Readability */
select, .form-select, select.kt-input, select.form-control, select#wizard-carousel-count {
    background-color: #141e30 !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
select option, .form-select option, select.kt-input option, select#wizard-carousel-count option {
    background-color: #141e30 !important;
    color: #e5e7eb !important;
}
select:focus, .form-select:focus {
    background-color: #141e30 !important;
    color: #ffffff !important;
    border-color: #37bed7 !important;
    box-shadow: 0 0 0 0.25rem rgba(55, 190, 215, 0.25) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    background-color: #141e30 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.dropdown-item {
    color: #e5e7eb !important;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(55, 190, 215, 0.15) !important;
    color: #ffffff !important;
}

/* Tooltips */
.tooltip-inner {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #1e293b !important;
}
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #1e293b !important;
}
.bs-tooltip-start .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #1e293b !important;
}
.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #1e293b !important;
}

/* Carousels */
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(200);
}
.carousel-indicators [data-bs-target] {
    background-color: #ffffff !important;
}
.carousel-caption {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- Premium Modal Tabs Styles (Contrast Fix) --- */
.kt-nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.kt-nav-tabs .nav-link {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px 8px 0 0 !important;
    margin-right: 4px;
    font-weight: 500;
    transition: all 0.2s ease !important;
}
.kt-nav-tabs .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.08) transparent !important;
}
.kt-nav-tabs .nav-link.active {
    color: var(--kt-secondary) !important;
    background-color: rgba(55, 190, 215, 0.12) !important;
    border-color: rgba(55, 190, 215, 0.25) rgba(55, 190, 215, 0.25) transparent !important;
    font-weight: 600 !important;
}

/* --- Expand Navbar Profile Dropdown by 50% --- */
.custom-navbar .dropdown-menu {
    min-width: 240px !important;
}

/* --- Color Palette Popover Dropdown --- */
.color-palette-dropdown .dropdown-menu {
    background-color: #141e30 !important;
    border: 1px solid rgba(55, 190, 215, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    z-index: 1060;
}
.color-preset-btn {
    transition: all 0.2s ease !important;
}
.color-preset-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--kt-secondary) !important;
}



