/* ================================================
   Modern Theme System for Sinav Yönetim
   ================================================ */

/* Base Improvements - Applied to all themes */
:root {
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --spacing-base: 1.5rem;
}

body {
    font-size: var(--font-size-base);
}

/* Larger DataTable text */
.table {
    font-size: 15px;
}

.table th {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Better card styling */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Improved buttons */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================================
   Colorful Avatar System - SOFT PASTEL COLORS
   ================================================ */
.avatar {
    font-weight: 600;
    font-size: 14px;
}

/* Softer, more professional avatar colors */
.avatar.avatar-color-1 {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

/* Soft Blue */
.avatar.avatar-color-2 {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

/* Soft Purple */
.avatar.avatar-color-3 {
    background: #e8f5e9 !important;
    color: #388e3c !important;
}

/* Soft Green */
.avatar.avatar-color-4 {
    background: #fff3e0 !important;
    color: #f57c00 !important;
}

/* Soft Orange */
.avatar.avatar-color-5 {
    background: #fce4ec !important;
    color: #c2185b !important;
}

/* Soft Pink */
.avatar.avatar-color-6 {
    background: #e0f2f1 !important;
    color: #00796b !important;
}

/* Soft Teal */
.avatar.avatar-color-7 {
    background: #f1f8e9 !important;
    color: #689f38 !important;
}

/* Soft Lime */
.avatar.avatar-color-8 {
    background: #ede7f6 !important;
    color: #5e35b1 !important;
}

/* Soft Indigo */

/* ================================================
   Theme 1: Classic (Default - Tabler)
   ================================================ */
[data-theme="classic"] {
    /* Uses default Tabler styling - no overrides needed */
    --tblr-primary: #206bc4;
}


/* ================================================
   Theme 2: Modern Blue
   ================================================ */
[data-theme="modern-blue"] {
    --tblr-primary: #3b82f6;
    --tblr-primary-rgb: 59, 130, 246;
}

[data-theme="modern-blue"] .page-wrapper {
    background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 100%);
}

[data-theme="modern-blue"] .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

[data-theme="modern-blue"] .navbar-vertical {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="modern-blue"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(59, 130, 246, 0.03);
}

/* ================================================
   Theme 3: Dark Mode
   ================================================ */
[data-theme="dark"] {
    --tblr-body-bg: #1a1d2e;
    --tblr-body-color: #e2e8f0;
    --tblr-card-bg: #252a3d;
    --tblr-border-color: #3a3f5c;
}

[data-theme="dark"] body {
    background: #1a1d2e;
    color: #e2e8f0;
}

[data-theme="dark"] .page-wrapper {
    background: #1a1d2e;
}

[data-theme="dark"] .card {
    background: #252a3d;
    border-color: #3a3f5c;
    color: #e2e8f0;
}

[data-theme="dark"] .table {
    color: #e2e8f0;
}

[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .navbar-vertical {
    background: #0f1117;
    border-right-color: #3a3f5c;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #1a1d2e;
    border-color: #3a3f5c;
    color: #e2e8f0;
}

[data-theme="dark"] .badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================================
   Modern QR Modal Styling
   ================================================ */
.qr-modal-modern .modal-content {
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    overflow: hidden;
}

.qr-modal-modern .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.qr-modal-modern .modal-body {
    padding: 2rem;
}

.qr-modal-modern #reader {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.qr-modal-modern #qrStatus {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 500;
}

.qr-status-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   DataTable Improvements
   ================================================ */
.dataTables_wrapper {
    padding: 1rem 0;
}

.dataTables_empty {
    padding: 3rem !important;
    text-align: center;
    color: #64748b;
    font-size: 16px;
}

table.dataTable tbody tr {
    transition: background-color 0.2s ease;
}

table.dataTable tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* ================================================
   Theme Switcher Button
   ================================================ */
.theme-switcher {
    position: relative;
}

.theme-switcher-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.theme-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.theme-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-option {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-option:hover {
    background: #f1f5f9;
}

.theme-option.active {
    background: #3b82f6;
    color: white;
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}

.theme-preview.classic {
    background: linear-gradient(135deg, #206bc4 0%, #1a569d 100%);
}

.theme-preview.smoke {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.theme-preview.dark {
    background: linear-gradient(135deg, #1a1d2e 0%, #0f1117 100%);
}

/* Header sağ: sunucu IP ve derleme tarihi - header ile aynı renk (görünmez) */
[data-theme="smoke"] .header-version-info {
    color: #374151;
}
[data-theme="white"] .header-version-info {
    color: #ffffff;
}