/* 3D THEME SWITCHER BUTTONS */
.theme-switcher-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #a3a3a3;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255,255,255,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background: none;
    padding: 0;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* Jel / Cam parlama efekti (Üst yarı) */
.theme-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0));
    border-radius: 8px 8px 0 0;
    z-index: 2;
    pointer-events: none;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.6);
}

.theme-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0,0,0,0.5);
}

/* Buton 1: Default */
.theme-btn[data-theme="default"]::before {
    background: linear-gradient(135deg, #0A192F 50%, #1D4ED8 50%);
}

/* Buton 2: Minimal */
.theme-btn[data-theme="minimal"] {
    border: 2px solid #d1d5db;
}
.theme-btn[data-theme="minimal"]::before {
    background: linear-gradient(135deg, #FFFFFF 50%, #E5E7EB 50%);
}

/* Buton 3: Glassmorphism */
.theme-btn[data-theme="glassmorphism"] {
    border: 2px solid #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6), inset 0 2px 4px rgba(255,255,255,0.3);
}
.theme-btn[data-theme="glassmorphism"]::before {
    background: linear-gradient(135deg, #00d4ff 50%, #1e40af 50%);
}


/* AUTOMATION CARD MODES */

/* Default Mode (Kurumsal, Opak) */
body.theme-default .automation-card {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

/* Minimal Mode (Düz, Temiz, Sıfır Göz Yoran) */
body.theme-minimal .automation-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: none !important;
    border-radius: 8px;
    color: #374151;
}

/* Glassmorphism Mode (Transparan, Neon, Cam) */
body.theme-glassmorphism {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    color: #f8fafc;
}

body.theme-glassmorphism .automation-card {
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(168, 85, 247, 0.8) !important; 
    border-left: 1px solid rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), -2px -2px 10px rgba(168, 85, 247, 0.2) !important;
    border-radius: 16px;
    color: #f1f5f9 !important;
}
body.theme-glassmorphism .automation-card .text-muted,
body.theme-glassmorphism .automation-card .text-secondary {
    color: #cbd5e1 !important;
}
body.theme-glassmorphism .automation-card h1,
body.theme-glassmorphism .automation-card h2,
body.theme-glassmorphism .automation-card h3,
body.theme-glassmorphism .automation-card h4,
body.theme-glassmorphism .automation-card h5,
body.theme-glassmorphism .automation-card h6 {
    color: #ffffff !important;
}

/* ----------------------------------
   HEADER & SIDEBAR THEME OVERRIDES 
   ---------------------------------- */

/* Minimal (YouTube Style) Overrides */
body.theme-minimal .ssp-header {
    background-color: #eaedf1 !important; /* Hafif daha gri header */
    border-bottom: 1px solid #d5d9e0 !important;
    box-shadow: none;
}
body.theme-minimal .ssp-header-title {
    color: #0077c2 !important; /* Açık mavi (2. resim arka planı tonu) */
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 145, 234, 0.35) !important; /* Hafif neon parlama */
}
body.theme-minimal .ssp-header-subtitle {
    color: #b45309 !important; /* Daha koyu sarı / amber - açık gri zeminde net okunur */
    font-weight: 700;
    text-shadow: none !important; /* Neon azaltıldı böylece net görünür */
}
body.theme-minimal .ssp-header-icon {
    border-color: #0077c2 !important;
    color: #0077c2 !important;
    box-shadow: 0 0 10px rgba(0, 145, 234, 0.35) !important; /* Hafif neon */
}
body.theme-minimal .ssp-header-username {
    color: #0f0f0f;
}
body.theme-minimal .ssp-header-userrole {
    color: #606060;
}
body.theme-minimal .ssp-sidebar {
    background-color: #eaedf1 !important; /* Sol sidebar arka planı da aynı şekilde hafif gri */
    border-right: 1px solid #d5d9e0 !important;
}
body.theme-minimal .ssp-nav-link {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #d5d9e0 !important; /* Menü etrafına çerçeve */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
    margin-bottom: 4px; /* Çerçeveler karışmasın diye ufak boşluk */
}
body.theme-minimal .ssp-nav-link:hover,
body.theme-minimal .ssp-nav-link.active {
    background-color: #f1f5f9 !important;
    color: #0077c2 !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: #0077c2 !important; /* Hoverda çerçeve açık mavi */
}
body.theme-minimal .ssp-nav-sub {
    border: 1px solid #d5d9e0 !important; /* Alt menü etrafına çerçeve */
    border-left: 3px solid #d5d9e0 !important; /* Sol çizgi biraz daha kalın */
    color: #475569 !important;
    border-radius: 8px !important; /* Alt menüler de tam çerçeve */
    margin-bottom: 2px;
    background-color: #ffffff !important;
}
body.theme-minimal .ssp-nav-sub:hover,
body.theme-minimal .ssp-nav-sub.active {
    border-left: 3px solid #0077c2 !important; /* Hoverda sol çizgi mavi olsun */
    border-color: #0077c2 !important;
    background-color: #f1f5f9 !important;
    color: #0077c2 !important;
    transform: none !important;
}
body.theme-minimal .ssp-nav-sub i {
    color: #475569 !important;
}
body.theme-minimal .ssp-logout-btn {
    border: 1px solid #d5d9e0;
    background-color: #ffffff !important;
    color: #0f0f0f !important;
}
body.theme-minimal .ssp-logout-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0077c2 !important;
    border-color: #0077c2 !important;
}
body.theme-minimal .ssp-copyright,
body.theme-minimal .ssp-copyright a {
    color: #606060 !important;
}
body.theme-minimal .ssp-menu-label {
    color: #475569;
    font-weight: 600;
}
body.theme-minimal .ssp-header-user {
    background-color: #ffffff;
    border-color: #d5d9e0;
}
body.theme-minimal .ssp-header-user:hover {
    background-color: #f1f5f9;
}

/* Glassmorphism Overrides */
body.theme-glassmorphism {
    background: 
        radial-gradient(circle at 15% 20%, rgba(0, 212, 255, 0.35), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.45), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.35), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 4px),
        #2a4b8d !important;
    background-attachment: fixed !important;
}
body.theme-glassmorphism .ssp-header {
    background: rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 12px rgba(0, 212, 255, 0.15);
}
body.theme-glassmorphism .ssp-header-title {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
body.theme-glassmorphism .ssp-header-subtitle {
    color: #e0f7fa;
    font-weight: 500;
}
body.theme-glassmorphism .ssp-header-icon {
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4), inset 0 0 8px rgba(0, 212, 255, 0.3);
}
body.theme-glassmorphism .ssp-sidebar {
    background: rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1), 1px 0 10px rgba(0, 212, 255, 0.12);
}
body.theme-glassmorphism .ssp-menu-label {
    color: #e0f7fa !important;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}
body.theme-glassmorphism .ssp-nav-link {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #ffffff !important;
    font-weight: 500;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.15), inset 0 0 6px rgba(0, 212, 255, 0.1);
}
body.theme-glassmorphism .ssp-nav-link:hover {
    background-color: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4), inset 0 0 8px rgba(0, 212, 255, 0.25);
    color: #ffffff !important;
}
body.theme-glassmorphism .ssp-nav-sub {
    border-left: 2px solid rgba(0, 212, 255, 0.4) !important;
    color: #e0f7fa !important;
    font-weight: 500;
}
body.theme-glassmorphism .ssp-nav-sub i {
    color: #e0f7fa !important;
}
body.theme-glassmorphism .ssp-nav-sub:hover {
    border-left: 2px solid rgba(0, 212, 255, 0.8) !important;
    background-color: rgba(0, 212, 255, 0.1) !important;
    box-shadow: inset 4px 0 10px rgba(0, 212, 255, 0.3);
    color: #ffffff !important;
}
body.theme-glassmorphism .ssp-header-user {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.35);
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3), inset 0 0 8px rgba(0, 212, 255, 0.2);
}
body.theme-glassmorphism .ssp-header-user span,
body.theme-glassmorphism .ssp-header-user div,
body.theme-glassmorphism .ssp-header-user i {
    color: #ffffff !important;
    font-weight: 600;
}
body.theme-glassmorphism .ssp-header-user:hover {
    background-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5), inset 0 0 10px rgba(0, 212, 255, 0.3);
}
body.theme-glassmorphism .ssp-logout-btn {
    border: 1px solid rgba(0, 212, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25), inset 0 0 6px rgba(0, 212, 255, 0.15);
}
body.theme-glassmorphism .ssp-logout-btn i {
    color: #ffffff !important;
}
body.theme-glassmorphism .ssp-logout-btn:hover {
    background-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.25);
}

/* Tüm genel butonlar (btn sınıfı) için Glassmorphism - Sidebar gibi */
body.theme-glassmorphism .btn:not(.theme-btn) {
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.18), inset 0 0 6px rgba(0, 212, 255, 0.12) !important;
    background: rgba(15, 50, 100, 0.7) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    backdrop-filter: blur(4px);
}
body.theme-glassmorphism .btn:not(.theme-btn):hover {
    background: rgba(0, 212, 255, 0.2) !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.45), inset 0 0 10px rgba(0, 212, 255, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
}

/* Tüm Liste & Kart Sayfaları - Glassmorphism Card (Topluluk Üye Listesi Gibi) */
body.theme-glassmorphism .ssp-card {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 12px rgba(0, 212, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #f1f5f9 !important;
}
body.theme-glassmorphism .ssp-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 212, 255, 0.18) !important;
}

/* Kart Başlıkları (Örn: Topluluk Üye Listesi, Birimler, Tüm Liste vb.) - Neon yarı yarıya azaltıldı */
body.theme-glassmorphism .ssp-card > h4,
body.theme-glassmorphism .ssp-card > .d-flex h4,
body.theme-glassmorphism .ssp-card h4.text-primary,
body.theme-glassmorphism .ssp-card h5.text-primary,
body.theme-glassmorphism .ssp-card h6.text-primary {
    color: #00b4d8 !important; /* Daha koyu mavi/turkuaz */
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.2) !important; /* Neon efekti yarı yarıya azaltıldı */
    font-weight: 700 !important;
}
body.theme-glassmorphism .ssp-card .text-muted,
body.theme-glassmorphism .ssp-card p.text-muted,
body.theme-glassmorphism .ssp-card .small {
    color: #cbd5e1 !important;
}
body.theme-glassmorphism .ssp-card .badge.bg-primary {
    background-color: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Tablolar - Beyaz ve Net Satırlar (Topluluk Üye Listesi Görünümü) */
body.theme-glassmorphism .ssp-card .table {
    background-color: transparent !important;
}
body.theme-glassmorphism .ssp-card .table thead,
body.theme-glassmorphism .ssp-card .table thead tr th,
body.theme-glassmorphism .ssp-card .table thead.table-light th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700;
    border-color: #cbd5e1 !important;
}
body.theme-glassmorphism .ssp-card .table tbody tr td {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
body.theme-glassmorphism .ssp-card .table-hover tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* Universal Table Search Input Width */
.table-search-input,
.ssp-card .table-search-input {
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}

div.dataTables_filter input,
.dataTables_wrapper .dataTables_filter input {
    width: 260px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 8px !important;
}

/* Tablo içindeki Birimler ve Renkli Metinler - Canlı Üniversite Mavisi ve Net İkonlar (Tema Farketmeksizin) */
.birim-cell-text,
.table tbody td .birim-cell-text,
.table tbody td .text-primary,
.table tbody td span.text-primary,
.table tbody td i.fa-building-columns,
body.theme-glassmorphism .ssp-card .table tbody td .text-primary,
body.theme-glassmorphism .ssp-card .table tbody td span.text-primary,
body.theme-glassmorphism .ssp-card .table tbody td i.text-primary,
.tum-liste-table td .text-primary,
.tum-liste-row td .text-primary {
    color: #00558c !important; /* Canlı üniversite mavisi koyu tonu */
    text-shadow: none !important;
    font-weight: 600 !important;
}
body.theme-glassmorphism .ssp-card .table tbody td .text-info,
body.theme-glassmorphism .ssp-card .table tbody td i.text-info,
.table tbody td i.fa-users {
    color: #0e7490 !important; /* Koyu turkuaz */
    text-shadow: none !important;
}
body.theme-glassmorphism .ssp-card .table tbody td .text-warning,
body.theme-glassmorphism .ssp-card .table tbody td i.text-warning,
.table tbody td i.fa-user-shield {
    color: #b45309 !important; /* Koyu amber/sarı */
    text-shadow: none !important;
}
body.theme-glassmorphism .ssp-card .table tbody td .text-success,
body.theme-glassmorphism .ssp-card .table tbody td i.text-success,
.table tbody td i.fa-user-graduate {
    color: #15803d !important; /* Koyu yeşil */
    text-shadow: none !important;
}
body.theme-glassmorphism .ssp-card .table tbody td .text-danger,
body.theme-glassmorphism .ssp-card .table tbody td i.text-danger,
.table tbody td i.fa-user-tie {
    color: #b91c1c !important; /* Koyu kırmızı */
    text-shadow: none !important;
}
body.theme-glassmorphism .ssp-card .table tbody td .text-dark {
    color: #0f172a !important;
    text-shadow: none !important;
}
body.theme-glassmorphism .ssp-card .table tbody td small.text-muted {
    color: #64748b !important;
    text-shadow: none !important;
}

/* Form Kontrolleri & Arama Çubukları */
body.theme-glassmorphism .ssp-card .form-label,
body.theme-glassmorphism .ssp-card label.form-label {
    color: #e0f7fa !important;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.4);
    font-weight: 600 !important;
}
body.theme-glassmorphism .ssp-card .form-control,
body.theme-glassmorphism .ssp-card .form-select,
body.theme-glassmorphism .ssp-card .table-search-input,
body.theme-glassmorphism .table-search-input,
body.theme-glassmorphism div.dataTables_filter input,
body.theme-glassmorphism .dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 8px;
}
body.theme-glassmorphism .ssp-card .form-control::placeholder,
body.theme-glassmorphism .table-search-input::placeholder,
body.theme-glassmorphism div.dataTables_filter input::placeholder {
    color: rgba(224, 247, 250, 0.6) !important;
}
body.theme-glassmorphism .ssp-card .form-control:focus,
body.theme-glassmorphism .ssp-card .form-select:focus,
body.theme-glassmorphism .ssp-card .table-search-input:focus,
body.theme-glassmorphism .table-search-input:focus,
body.theme-glassmorphism div.dataTables_filter input:focus,
body.theme-glassmorphism .dataTables_wrapper .dataTables_filter input:focus {
    border-color: rgba(0, 212, 255, 0.9) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    outline: none !important;
}
body.theme-glassmorphism div.dataTables_filter label {
    color: #e0f7fa !important;
    font-weight: 600;
}
body.theme-glassmorphism .ssp-card .input-group-text {
    background: rgba(0, 212, 255, 0.15) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #00d4ff !important;
}

/* Modal Glassmorphism */
body.theme-glassmorphism .modal-content {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2) !important;
}
body.theme-glassmorphism .modal-header {
    border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
}
body.theme-glassmorphism .modal-header .modal-title {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
body.theme-glassmorphism .modal-footer {
    border-top: 1px solid rgba(0, 212, 255, 0.3) !important;
    background: rgba(0, 212, 255, 0.05) !important;
}
body.theme-glassmorphism .modal-body .form-label,
body.theme-glassmorphism .modal-body label {
    color: #e0f7fa !important;
    font-weight: 600 !important;
}
body.theme-glassmorphism .modal-body .form-control,
body.theme-glassmorphism .modal-body .form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #ffffff !important;
}
body.theme-glassmorphism .modal-body .form-control:focus,
body.theme-glassmorphism .modal-body .form-select:focus {
    border-color: rgba(0, 212, 255, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4) !important;
}
body.theme-glassmorphism .modal-body .text-muted {
    color: rgba(224, 247, 250, 0.6) !important;
}

/* Select2 Glassmorphism */
body.theme-glassmorphism .select2-container--default .select2-selection--single,
body.theme-glassmorphism .select2-container--bootstrap-5 .select2-selection {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #ffffff !important;
}
body.theme-glassmorphism .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0f7fa !important;
}

/* DataTables kayıt göster, bilgi yazıları ve sayfa numaraları - ZORUNLU (LACİVERT) */
body.theme-glassmorphism div.dataTables_length,
body.theme-glassmorphism div.dataTables_length *,
body.theme-glassmorphism div.dataTables_length label,
body.theme-glassmorphism div.dataTables_info,
body.theme-glassmorphism .dataTables_wrapper div.dataTables_length,
body.theme-glassmorphism .dataTables_wrapper div.dataTables_length *,
body.theme-glassmorphism .dataTables_wrapper div.dataTables_info {
    color: #0d233a !important; /* Lacivert */
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600;
}
body.theme-glassmorphism div.dataTables_length select,
body.theme-glassmorphism .dataTables_wrapper div.dataTables_length select {
    background: #ffffff !important;
    border: 1px solid #0d233a !important;
    color: #0d233a !important;
}
body.theme-glassmorphism div.dataTables_paginate,
body.theme-glassmorphism div.dataTables_paginate *,
body.theme-glassmorphism .dataTables_wrapper div.dataTables_paginate,
body.theme-glassmorphism .dataTables_wrapper div.dataTables_paginate *,
body.theme-glassmorphism .dataTables_paginate .paginate_button,
body.theme-glassmorphism .page-item .page-link,
body.theme-glassmorphism .page-link,
body.theme-glassmorphism nav .page-link {
    color: #0d233a !important; /* Lacivert */
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600;
}
body.theme-glassmorphism .page-item.active .page-link {
    background: #0d233a !important; /* Lacivert arka plan */
    border-color: #0d233a !important;
    color: #ffffff !important; /* Aktif olanın yazısı beyaz */
}

/* ==========================================
   MICRO-INTERACTIONS FOR ACTION BUTTONS 
   ========================================== */
.btn-micro {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-micro span.btn-text {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: inline-block;
}

.btn-micro i.icon-idle {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.btn-micro i.icon-action {
    position: absolute;
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
    font-size: 1.2rem;
}

/* 1. GÖNDER BUTONU (.btn-micro-submit) */
.btn-micro-submit:hover span.btn-text,
.btn-micro-submit:hover i.icon-idle {
    transform: translateY(-20px);
    opacity: 0;
}

.btn-micro-submit:hover i.icon-action {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.btn-micro-submit.micro-active i.icon-action {
    animation: paperPlaneFly 0.6s forwards ease-in;
}

@keyframes paperPlaneFly {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
    50% { transform: translate(20px, -20px) scale(1.1) rotate(15deg); opacity: 1; }
    100% { transform: translate(60px, -60px) scale(0.5) rotate(45deg); opacity: 0; }
}

/* 2. KAYDET BUTONU (.btn-micro-save) */
.btn-micro-save .icon-action-envelope {
    position: absolute;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}
.btn-micro-save .icon-action-doc {
    position: absolute;
    opacity: 0;
    transform: translateY(0px) scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

.btn-micro-save:hover span.btn-text,
.btn-micro-save:hover i.icon-idle {
    transform: translateX(-15px);
    opacity: 0;
}

.btn-micro-save:hover .icon-action-envelope {
    opacity: 1;
    transform: translateY(5px);
}
.btn-micro-save:hover .icon-action-doc {
    opacity: 1;
    transform: translateY(-10px) scale(0.9);
}

.btn-micro-save.micro-active .icon-action-doc {
    animation: docIntoEnvelope 0.5s forwards ease-in-out;
}
.btn-micro-save.micro-active .icon-action-envelope {
    animation: envelopeClose 0.5s forwards ease-in-out;
    animation-delay: 0.3s;
}

@keyframes docIntoEnvelope {
    0% { transform: translateY(-10px) scale(0.9); opacity: 1; }
    100% { transform: translateY(10px) scale(0.7); opacity: 0; }
}
@keyframes envelopeClose {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 3. TASLAK OLARAK KAYDET (.btn-micro-draft) */
.btn-micro-draft .icon-action-box {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}
.btn-micro-draft .icon-action-item {
    position: absolute;
    opacity: 0;
    transform: translateY(-15px) scale(0.5);
    transition: all 0.3s ease;
    color: var(--bs-warning);
}

.btn-micro-draft:hover span.btn-text,
.btn-micro-draft:hover i.icon-idle {
    transform: translateY(-15px) scale(0.9);
    opacity: 0;
}

.btn-micro-draft:hover .icon-action-box {
    opacity: 1;
    transform: translateY(5px);
}
.btn-micro-draft:hover .icon-action-item {
    opacity: 1;
    transform: translateY(-5px) scale(0.8);
}

.btn-micro-draft.micro-active .icon-action-item {
    animation: fallIntoBox 0.4s forwards cubic-bezier(0.55, 0.085, 0.68, 0.53);
}
.btn-micro-draft.micro-active .icon-action-box {
    animation: boxShake 0.4s forwards;
    animation-delay: 0.3s;
}

@keyframes fallIntoBox {
    0% { transform: translateY(-5px) scale(0.8); opacity: 1; }
    100% { transform: translateY(10px) scale(0); opacity: 0; }
}
@keyframes boxShake {
    0%, 100% { transform: translateY(5px) rotate(0deg); }
    25% { transform: translateY(5px) rotate(-5deg); }
    75% { transform: translateY(5px) rotate(5deg); }
}

/* 4. SİL / İPTAL BUTONU (.btn-micro-delete) */
.btn-micro-delete .icon-action-trash {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}
.btn-micro-delete .icon-action-dot {
    position: absolute;
    opacity: 0;
    width: 6px;
    height: 6px;
    background-color: #dc3545;
    border-radius: 50%;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.btn-micro-delete:hover span.btn-text,
.btn-micro-delete:hover i.icon-idle {
    transform: scale(0.8);
    opacity: 0;
}

.btn-micro-delete:hover .icon-action-trash {
    opacity: 1;
    transform: translateY(2px);
    animation: trashShakeHover 1s infinite alternate;
}
.btn-micro-delete:hover .icon-action-dot {
    opacity: 1;
    transform: translateY(-10px);
}

.btn-micro-delete.micro-active .icon-action-dot {
    animation: dotFall 0.3s forwards cubic-bezier(0.55, 0.085, 0.68, 0.53);
}
.btn-micro-delete.micro-active .icon-action-trash {
    animation: trashShut 0.4s forwards;
    animation-delay: 0.2s;
}

@keyframes trashShakeHover {
    0% { transform: translateY(2px) rotate(0deg); }
    100% { transform: translateY(2px) rotate(3deg); }
}
@keyframes dotFall {
    0% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(5px); opacity: 0; }
}
@keyframes trashShut {
    0% { transform: translateY(2px) scale(1); }
    50% { transform: translateY(2px) scale(1.1); }
    100% { transform: translateY(2px) scale(1); }
}

/* 5. DÜZENLE BUTONU MİKRO ANİMASYONU (.btn-outline-warning, .btn-warning) */
.btn-outline-warning:hover .fa-pen,
.btn-warning:hover .fa-pen,
.btn-outline-warning:hover .fa-pencil,
.btn-warning:hover .fa-pencil {
    animation: penWrite 1.2s ease-in-out infinite;
    transform-origin: bottom left;
}

@keyframes penWrite {
    0% { transform: rotate(0deg) translate(0, 0); }
    10% { transform: rotate(-15deg) translate(2px, 2px); }
    20% { transform: rotate(5deg) translate(3px, -1px); }
    30% { transform: rotate(-10deg) translate(5px, 2px); }
    40% { transform: rotate(5deg) translate(6px, -1px); }
    50% { transform: rotate(-15deg) translate(8px, 2px); }
    60% { transform: rotate(5deg) translate(9px, -1px); }
    70% { transform: rotate(0deg) translate(11px, 0); }
    85% { transform: rotate(0deg) translate(0, 0); } /* Hızlıca başa dön */
    100% { transform: rotate(0deg) translate(0, 0); }
}

/* 6. GENEL ACTION BUTONLARI (İncele, İndir vb.) */
.action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.action-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* 7. SİLME VE REDDETME BUTONU ANİMASYONU */
.btn-outline-danger:hover .fa-trash,
.btn-danger:hover .fa-trash,
.btn-outline-danger:hover .fa-trash-can,
.btn-danger:hover .fa-trash-can,
.btn-outline-danger:hover .fa-times,
.btn-danger:hover .fa-times {
    animation: trashThrow 0.4s ease-in-out infinite alternate;
}

@keyframes trashThrow {
    0% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(-15deg) scale(1.2); }
    66% { transform: rotate(15deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}

/* 8. İNDİRME BUTONU ANİMASYONU */
.btn-outline-success:hover .fa-download,
.btn-success:hover .fa-download {
    animation: downloadBounce 0.6s ease-in-out infinite alternate;
}

@keyframes downloadBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

/* 9. BÜYÜTEÇ / İNCELE ANİMASYONU */
.btn-outline-primary:hover .fa-magnifying-glass,
.btn-primary:hover .fa-magnifying-glass {
    animation: glassSearch 0.8s ease-in-out infinite alternate;
}

@keyframes glassSearch {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2px, -2px) scale(1.1); }
    100% { transform: translate(2px, 2px) scale(1.1); }
}

/* ==========================================
   SLIDING ADMIN PANEL NAVIGATION
   ========================================== */
.admin-card-wrapper {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.slide-out-left {
    transform: translateX(-150%) scale(0.9);
    opacity: 0;
}

.slide-out-right {
    transform: translateX(150%) scale(0.9);
    opacity: 0;
}

.slide-out-down {
    transform: translateY(150%) scale(0.9);
    opacity: 0;
}

.slide-out-active {
    transform: translateZ(50px) translateY(100%);
    opacity: 0;
    z-index: 10;
}

.slide-out-right-stretch {
    transform: translateX(150%) scaleX(1.8);
    opacity: 0;
    transform-origin: left center;
}

/* =========================================================
   PEN WRITING ON PAPER ANIMATION (DÜZENLE BUTONU)
   ========================================================= */
.btn-edit-birim,
.btn-pen-writing {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-edit-birim i.fa-pen,
.btn-pen-writing i.fa-pen {
    display: inline-block;
    transform-origin: bottom left;
    transition: transform 0.2s ease;
}

.btn-edit-birim:hover i.fa-pen,
.btn-pen-writing:hover i.fa-pen {
    animation: sspPenWriting 0.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes sspPenWriting {
    0% {
        transform: rotate(0deg) translate(0, 0) scale(1.1);
    }
    25% {
        transform: rotate(-18deg) translate(3px, -2px) scale(1.15);
    }
    50% {
        transform: rotate(-8deg) translate(1px, 1px) scale(1.1);
    }
    75% {
        transform: rotate(-22deg) translate(4px, -1px) scale(1.18);
    }
    100% {
        transform: rotate(-12deg) translate(2px, 0) scale(1.1);
    }
}

/* Kağıda yazılan çizgi efekti */
.btn-edit-birim::after,
.btn-pen-writing::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 20%;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.3s ease;
}

.btn-edit-birim:hover::after,
.btn-pen-writing:hover::after {
    width: 60%;
    opacity: 0.8;
    animation: sspLineDraw 0.6s ease-out forwards;
}

@keyframes sspLineDraw {
    0% {
        width: 0%;
        opacity: 0;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        width: 65%;
        opacity: 0.8;
    }
}

/* ==========================================
   RESPONSIVE FORM & DYNAMIC TABLE STYLES
   ========================================== */

/* Select2 Responsive Corrections */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-dropdown {
    max-width: 100vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1060;
}

/* Dynamic Tables in Application Forms */
.dynamic-table-responsive {
    min-width: 600px;
}

@media (max-width: 767.98px) {
    .form-header-responsive {
        padding: 1.25rem 1rem !important;
    }

    .form-body-responsive {
        padding: 1.25rem 1rem !important;
    }

    .dynamic-table-wrapper {
        border-radius: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .word-counter-badge {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    /* Status badge text wrapping protection */
    .badge {
        white-space: nowrap;
    }

    /* Modal responsiveness */
    .modal-content {
        border-radius: 0.75rem;
    }
}

