/**
 * Dark Theme CSS - Koyu tema için stiller
 * Kaynak dosyalar: frontend.css
 */

/* Sticky sütun arka plan */
/* Kaynak: frontend.css, satır 68-70 */
.dark-theme .sticky-column {
    background-color: #1E2635;
}

/* Tablo stilleri */
/* Kaynak: frontend.css, satır 457-468 */
.dark-theme .table {
    --bs-table-bg: #1E2635;
    --bs-table-striped-bg: #243147;
    --bs-table-striped-color: #f8f9fa;
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-active-color: #f8f9fa;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: #f8f9fa;
    color: #f8f9fa;
    border-color: #495057;
}

/* Kaynak: frontend.css, satır 469-472 */
.dark-theme .table-bordered > :not(caption) > * {
    border-width: 1px 0;
    border-color: #495057;
}

/* Kaynak: frontend.css, satır 473-477 */
.dark-theme .table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
    border-color: #495057;
}

/* Buton stilleri */
/* Kaynak: frontend.css, satır 478-483 */
.dark-theme .btn-primary {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

/* Kaynak: frontend.css, satır 484-488 */
.dark-theme .btn-primary:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

/* Kaynak: frontend.css, satır 524-532 */
.dark-theme .input-group .btn-primary {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

/* Kaynak: frontend.css, satır 533-539 */
.dark-theme .input-group .btn-primary:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Sayfalama stilleri */
/* Kaynak: frontend.css, satır 519 */
.dark-theme .pagination .page-link { 
    background-color: #1E2635; 
    color: #ffc107; 
    border-color: #495057; 
}

/* Kaynak: frontend.css, satır 520 */
.dark-theme .pagination .page-item.active .page-link { 
    background-color: #ffc107; 
    border-color: #ffc107; 
    color: #212529; 
}

/* Kaynak: frontend.css, satır 521 */
.dark-theme .pagination .page-item.disabled .page-link { 
    color: #6c757d; 
    background-color: #1E2635; 
    border-color: #495057; 
}

/* Form elementleri */
.dark-theme .custom-select,
.dark-theme select,
.dark-theme .form-select {
    background-color: #1A202C;
    color: #f8f9fa;
    border-color: #495057;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23f8f9fa' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    min-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-theme .custom-select:hover,
.dark-theme select:hover,
.dark-theme .form-select:hover {
    border-color: #ffc107;
    outline: 0;
}

.dark-theme .custom-select:focus,
.dark-theme select:focus,
.dark-theme .form-select:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.dark-theme select option,
.dark-theme .form-select option,
.dark-theme .custom-select option {
    padding: 10px;
    background-color: #1A202C;
    color: #f8f9fa;
    font-size: 14px;
    border: none;
    outline: none;
    min-height: 40px;
    line-height: 40px;
}

/* Select2 uyumluluğu */
.dark-theme .select2-container .select2-selection--single {
    background-color: #1A202C;
    color: #f8f9fa;
    border-color: #495057;
    height: 38px;
}

.dark-theme .select2-container .select2-results__option {
    background-color: #1A202C;
    color: #f8f9fa;
    padding: 10px;
    min-height: 40px;
}

.dark-theme .select2-container .select2-results__option--highlighted {
    background-color: #2D3748;
    color: #f8f9fa;
}

/* Dropdown menu styles */
.dark-theme .dropdown-menu {
    background-color: #1A202C;
    border-color: #495057;
    padding: 8px 0;
}

.dark-theme .dropdown-item {
    color: #f8f9fa;
    padding: 8px 16px;
}

.dark-theme .dropdown-item:hover,
.dark-theme .dropdown-item:focus {
    background-color: #2D3748;
    color: #f8f9fa;
}

/* Form group labels */
.dark-theme .form-group label {
    color: #f8f9fa;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Custom select focus states */
.dark-theme .custom-select:focus option,
.dark-theme select:focus option {
    background-color: #2D3748;
    color: #f8f9fa;
}

/* Promoted Coins table fix for dark theme */
.dark-theme .crypto-promoted-section {
    background-color: #1A202C !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .crypto-promoted-header {
    background: #1A202C !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .crypto-promoted-title {
    color: #f8f9fa !important;
}

.dark-theme .table-responsive,
.dark-theme .crypto-promoted-table {
    background-color: #1A202C !important;
}

.dark-theme .crypto-promoted-table tbody tr {
    background-color: #1A202C !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .crypto-promoted-table tr:hover {
    background-color: rgba(255, 215, 0, 0.08) !important;
}

.dark-theme .crypto-promoted-table td,
.dark-theme .crypto-promoted-table th {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .crypto-promoted-table td.sticky-column {
    background-color: #1A202C !important;
}

/* Ensure that table cell contents are visible */
.dark-theme .crypto-promoted-table .coin-name {
    color: #fff !important;
}

.dark-theme .crypto-promoted-table .coin-symbol {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 215, 0, 0.15) !important;
}

.dark-theme .crypto-promoted-table .chain-name {
    color: #fff !important;
}

/* Additional direct class target for the table */
.dark-theme .dark-table-fix {
    background-color: #1A202C !important;
    color: #e2e8f0 !important;
}

/* Force row background colors */
.dark-theme .dark-table-fix tr {
    background-color: #1A202C !important;
}

/* Force all elements within the table to use proper colors */
.dark-theme .dark-table-fix * {
    border-color: rgba(255, 255, 255, 0.05) !important;
} 