/* ===== ULTIMATE DARK THEME - TÜZEL ÜST CSS ===== */
/* Bu dosya son sırada load edilir ve tüm CSS'i override eder */

/* BODY VE ROOT */
body.dark-theme {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

body.dark-theme * {
    background-color: inherit !important;
}

/* TEXT - AGRESIF OVERRIDE */
body.dark-theme,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme p,
body.dark-theme span,
body.dark-theme div,
body.dark-theme section,
body.dark-theme article,
body.dark-theme label,
body.dark-theme li,
body.dark-theme td,
body.dark-theme th,
body.dark-theme button,
body.dark-theme a,
body.dark-theme strong,
body.dark-theme b,
body.dark-theme i,
body.dark-theme em,
body.dark-theme small,
body.dark-theme code,
body.dark-theme pre {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

/* TABLE - ULTRA AGRESIF */
body.dark-theme table {
    background-color: #0f172a !important;
}

body.dark-theme table,
body.dark-theme tbody,
body.dark-theme thead,
body.dark-theme tr {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

body.dark-theme th {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-theme td {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-theme tr:nth-child(even) {
    background-color: #162032 !important;
}

body.dark-theme tr:nth-child(even) td {
    background-color: #162032 !important;
}

/* RADZEN TABLE */
body.dark-theme .rz-datatable,
body.dark-theme .rz-data-grid,
body.dark-theme .rz-grid-table {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

body.dark-theme .rz-grid-table head,
body.dark-theme .rz-grid-table thead,
body.dark-theme .rz-datatable thead,
body.dark-theme .rz-datatable .rz-datatable-head {
    background-color: #1e293b !important;
}

body.dark-theme .rz-grid-table head th,
body.dark-theme .rz-grid-table thead th,
body.dark-theme .rz-datatable thead th,
body.dark-theme .rz-datatable thead .rz-cell,
body.dark-theme .rz-datatable .rz-cell {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-grid-table body,
body.dark-theme .rz-grid-table tbody,
body.dark-theme .rz-datatable tbody {
    background-color: #0f172a !important;
}

body.dark-theme .rz-grid-table tbody td,
body.dark-theme .rz-datatable tbody td,
body.dark-theme .rz-datatable tbody .rz-cell {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-grid-table tbody tr:nth-child(even),
body.dark-theme .rz-datatable tbody tr:nth-child(even) {
    background-color: #162032 !important;
}

body.dark-theme .rz-grid-table tbody tr:nth-child(even) td,
body.dark-theme .rz-datatable tbody tr:nth-child(even) td {
    background-color: #162032 !important;
}

/* RADZEN ROW VE CELL */
body.dark-theme .rz-row {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

body.dark-theme .rz-row:nth-child(even) {
    background-color: #162032 !important;
}

body.dark-theme .rz-cell,
body.dark-theme [role="cell"] {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* INPUTS VE FORMS */
body.dark-theme input[type="text"],
body.dark-theme input[type="password"],
body.dark-theme input[type="email"],
body.dark-theme input[type="number"],
body.dark-theme input[type="search"],
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .rz-textbox,
body.dark-theme .rz-inputtext,
body.dark-theme .rz-textarea,
body.dark-theme .rz-dropdown {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
    caret-color: #e2e8f0 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #64748b !important;
}

body.dark-theme label,
body.dark-theme .rz-form-field-label {
    color: #cbd5e1 !important;
}

/* BUTTONS */
body.dark-theme button,
body.dark-theme .rz-button {
    color: inherit !important;
}

body.dark-theme .rz-button[type="button"]:not([class*="primary"]):not([class*="success"]):not([class*="danger"]),
body.dark-theme input[type="button"] {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

/* DROPDOWN VE POPUP MENU */
body.dark-theme .rz-dropdown-panel,
body.dark-theme .rz-popup,
body.dark-theme .rz-overlaypanel,
body.dark-theme .rz-contextmenu,
body.dark-theme .rz-profile-menu .rz-popup {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-dropdown-item,
body.dark-theme .rz-popup a,
body.dark-theme .rz-popup span,
body.dark-theme .rz-popup .rz-menuitem-link,
body.dark-theme .rz-profile-menu-item,
body.dark-theme .rz-contextmenu-item {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

body.dark-theme .rz-dropdown-item:hover,
body.dark-theme .rz-popup a:hover,
body.dark-theme .rz-menuitem-link:hover,
body.dark-theme .rz-profile-menu-item:hover,
body.dark-theme .rz-contextmenu-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

/* SIDEBAR */
body.dark-theme .rz-sidebar {
    background-color: #0f172a !important;
    border-right-color: #334155 !important;
}

body.dark-theme .rz-panel-menu {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-panel-menu-item {
    color: #cbd5e1 !important;
    background-color: transparent !important;
}

body.dark-theme .rz-panel-menu-item:hover,
body.dark-theme .rz-panel-menu-item.rz-state-hover {
    background-color: rgba(255,255,255,0.06) !important;
}

body.dark-theme .rz-navigation-item-active .rz-panel-menu-item {
    background-color: rgba(220, 74, 66, 0.1) !important;
    color: #dc4a42 !important;
}

/* HEADER */
body.dark-theme .rz-header {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-bottom-color: #334155 !important;
}

/* BODY CONTENT */
body.dark-theme .rz-body {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* CARDS VE PANELS */
body.dark-theme .rz-card,
body.dark-theme .rz-panel,
body.dark-theme .rz-fieldset,
body.dark-theme [class*="card"],
body.dark-theme [class*="panel"] {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* LINKS */
body.dark-theme a {
    color: #60a5fa !important;
}

body.dark-theme a:hover {
    color: #93bbfd !important;
}

/* SCROLLBAR */
body.dark-theme ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #0f172a !important;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #475569 !important;
    border-radius: 5px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
}

/* SPECIAL ELEMENTS */
body.dark-theme hr {
    border-color: #334155 !important;
}

body.dark-theme code,
body.dark-theme pre {
    background-color: #162032 !important;
    color: #e2e8f0 !important;
}

/* CHECKBOX VE RADIO */
body.dark-theme .rz-chkbox .rz-chkbox-box,
body.dark-theme .rz-radiobutton .rz-radiobutton-box {
    background-color: #1e293b !important;
    border-color: #475569 !important;
}

body.dark-theme .rz-chkbox input:checked + .rz-chkbox-box,
body.dark-theme .rz-radiobutton input:checked + .rz-radiobutton-box {
    background-color: #dc4a42 !important;
    border-color: #dc4a42 !important;
}

/* TOOLTIP VE DIALOGS */
body.dark-theme .rz-tooltip,
body.dark-theme .rz-dialog {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-dialog-titlebar {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* PAGINATION */
body.dark-theme .rz-paginator,
body.dark-theme .rz-pager {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-paginator-page,
body.dark-theme .rz-pager-item {
    color: #e2e8f0 !important;
}

/* TAB */
body.dark-theme .rz-tabview {
    background-color: #0f172a !important;
}

body.dark-theme .rz-tabview-nav {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-theme .rz-tabview-panels {
    background-color: #0f172a !important;
}

/* GRID VE FLEXBOX */
body.dark-theme .rz-g {
    background-color: transparent !important;
}

body.dark-theme .rz-col {
    color: #e2e8f0 !important;
}
