/* [yz.txt] SPA Çekirdek Stilleri - aa.css */

.glass-effect,
.glass-card,
.window-frame,
.jconfirm-box,
.taskbar,
#start-menu {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--card-shadow) !important;
    color: var(--text-primary) !important;
}

.window-frame {
    position: absolute;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid var(--border-color);
    resize: both;
    min-width: 300px;
    min-height: 200px;
    color: var(--text-primary);
}

.window-header {
    background: var(--header-bg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    border-bottom: 1px solid var(--border-color);
}

.window-content {
    flex: 1;
    overflow: auto;
    position: relative;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 0.8rem;
}

.window-controls button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tema-dark .window-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-close-win:hover {
    background: #ff5f56 !important;
    color: white !important;
}

.taskbar-win-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.taskbar-win-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.taskbar-win-icon.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Scrollbar Modernize */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Arka Plan Animasyonu */
.background-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #1e3c72, #2a5298, #0f2027, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.5;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#app-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 10;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DataTable & Select2 & Confirm Karanlık Mod Uyumu */
.tema-dark .table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.tema-dark .card {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.tema-dark input,
.tema-dark select,
.tema-dark textarea {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.tema-dark .jconfirm-title-c {
    color: var(--text-primary) !important;
}

.tema-dark .jconfirm-content {
    color: var(--text-secondary) !important;
}

.tema-dark .text-muted {
    color: var(--text-secondary) !important;
}

.tema-dark ::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.tema-dark :-ms-input-placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.tema-dark ::-ms-input-placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* --- YENİ TEMALAR --- */

/* 1. Okyanus (Ocean) */
.tema-ocean {
    --bg-primary: #e0f7fa;
    --bg-secondary: #ffffff;
    --header-bg: #0277bd;
    --text-primary: #01579b;
    --text-secondary: #0288d1;
    --border-color: rgba(2, 119, 189, 0.2);
    --glass-bg: rgba(224, 247, 250, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(2, 119, 189, 0.15);
    --primary-color: #0288d1;
}

.tema-ocean .window-header,
.tema-ocean .card-header {
    color: #fff;
}

/* 2. Orman (Forest) */
.tema-forest {
    --bg-primary: #f1f8e9;
    --bg-secondary: #ffffff;
    --header-bg: #33691e;
    --text-primary: #1b5e20;
    --text-secondary: #558b2f;
    --border-color: rgba(51, 105, 30, 0.2);
    --glass-bg: rgba(241, 248, 233, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(51, 105, 30, 0.15);
    --primary-color: #558b2f;
}

.tema-forest .window-header,
.tema-forest .card-header {
    color: #fff;
}

/* 3. Gün Batımı (Sunset) */
.tema-sunset {
    --bg-primary: #fff3e0;
    --bg-secondary: #ffffff;
    --header-bg: #ef6c00;
    --text-primary: #e65100;
    --text-secondary: #f57c00;
    --border-color: rgba(239, 108, 0, 0.2);
    --glass-bg: rgba(255, 243, 224, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(239, 108, 0, 0.15);
    --primary-color: #ef6c00;
}

.tema-sunset .window-header,
.tema-sunset .card-header {
    color: #fff;
}

/* 4. Asil (Royal) */
.tema-royal {
    --bg-primary: #1a0b2e;
    --bg-secondary: #2d1b4e;
    --header-bg: #4a148c;
    --text-primary: #f3e5f5;
    --text-secondary: #e1bee7;
    --border-color: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(26, 11, 46, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --primary-color: #ab47bc;
}

.tema-royal .window-header,
.tema-royal .card-header {
    color: #fff;
}

/* 5. Siber (Cyber) */
.tema-cyber {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --header-bg: #0d0d0d;
    --text-primary: #00ffcc;
    --text-secondary: #ff00ff;
    --border-color: #00ffcc;
    --glass-bg: rgba(0, 0, 0, 0.9);
    --glass-border: #00ffcc;
    --card-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    --primary-color: #00ffcc;
}

.tema-cyber .btn-primary {
    background-color: transparent !important;
    border: 1px solid #00ffcc !important;
    color: #00ffcc !important;
    box-shadow: 0 0 5px #00ffcc;
}

.tema-cyber .btn-primary:hover {
    background-color: #00ffcc !important;
    color: #000 !important;
}

.tema-cyber .window-header,
.tema-cyber .card-header {
    color: #00ffcc;
    border-bottom: 1px solid #00ffcc;
}

/* --- BİLEŞEN UYUMLULUĞU --- */

/* DataTables Genel Uyum */
.table {
    margin-bottom: 0 !important;
    color: var(--text-primary) !important;
}

.table thead th {
    background-color: var(--header-bg) !important;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color) !important;
}

/* Header text rengini bazı temalarda beyaz yap */
.tema-ocean .table thead th,
.tema-forest .table thead th,
.tema-sunset .table thead th,
.tema-royal .table thead th {
    color: #fff !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.tema-dark .table-striped tbody tr:nth-of-type(odd),
.tema-royal .table-striped tbody tr:nth-of-type(odd),
.tema-cyber .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-primary) !important;
    margin-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: var(--text-secondary) !important;
}

/* JQuery Confirm Uyum */
.jconfirm .jconfirm-box {
    background: var(--bg-secondary) !important;
    border-top: 5px solid var(--header-bg) !important;
    color: var(--text-primary) !important;
}

.jconfirm .jconfirm-box .jconfirm-title-c .jconfirm-title {
    color: var(--text-primary) !important;
}

.jconfirm .jconfirm-box .jconfirm-content {
    color: var(--text-primary) !important;
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue {
    background-color: var(--header-bg) !important;
    /* Temanın ana rengi */
    border-color: var(--header-bg) !important;
}

.tema-cyber .jconfirm .jconfirm-box {
    border: 1px solid #00ffcc !important;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2) !important;
}

/* Select2 Uyum */
.select2-container--default .select2-selection--single {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
}

.select2-dropdown {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--header-bg) !important;
    color: #fff !important;
}

.tema-cyber .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00ffcc !important;
    color: #000 !important;
}

/* Arka Plan Animasyonları */
.anim-particles {
    background: radial-gradient(circle, transparent 20%, var(--bg-primary) 20%, var(--bg-primary) 80%, transparent 80%, transparent) 0% 0% / 50px 50px,
        radial-gradient(circle, transparent 20%, var(--bg-primary) 20%, var(--bg-primary) 80%, transparent 80%, transparent) 25px 25px / 50px 50px,
        linear-gradient(var(--bg-secondary) 2px, transparent 2px) 0 -1px / 50px 50px,
        linear-gradient(90deg, var(--bg-secondary) 2px, transparent 2px) -1px 0 / 50px 50px;
    background-color: var(--bg-primary);
    animation: particlesMove 60s linear infinite;
}

@keyframes particlesMove {
    0% {
        background-position: 0 0, 25px 25px, 0 -1px, -1px 0;
    }

    100% {
        background-position: 50px 50px, 75px 75px, 50px 49px, 49px 50px;
    }
}

.anim-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.anim-aurora {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    overflow: hidden;
}

.anim-aurora::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(32, 255, 120, 0.1), transparent 50%);
    animation: rotateAurora 20s linear infinite;
}

@keyframes rotateAurora {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* FullCalendar Uyum */
.fc .fc-toolbar-title {
    color: var(--text-primary) !important;
}

.fc .fc-button-primary {
    background-color: var(--header-bg) !important;
    border-color: var(--header-bg) !important;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border-color: var(--border-color) !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* JQuery Confirm Eklentiler */
.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover {
    background-color: var(--border-color) !important;
}

.jconfirm-box .jconfirm-content-pane {
    color: var(--text-primary) !important;
}

/* Pencere Yöneticisi Ekler */
.window-frame.active {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    border-color: var(--text-secondary) !important;
    z-index: 100 !important;
}

.tema-cyber .window-frame {
    border: 1px solid #00ffcc !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2) !important;
}

.window-header .window-title {
    color: #fff;
    /* Başlıklar genelde koyu zemin üzerinde beyaz */
}

.tema-light .window-header .window-title {
    color: var(--text-primary);
    /* Sadece light temada koyu metin */
}

.tema-ocean .window-header .window-title,
.tema-forest .window-header .window-title,
.tema-sunset .window-header .window-title,
.tema-royal .window-header .window-title,
.tema-dark .window-header .window-title {
    color: #fff !important;
}

#previewBody,
#previewBody iframe {
    min-height: 999px !important;
    height: 100%;
}