/* ==========================================================================
   Tesis Yöneticisi Admin Paneli - Eye-Comfort Executive Dark Theme
   Uzun süreli kullanımda göz yormayan, dengeli kontrast ve modern tasarım
   ========================================================================== */

:root {
    --admin-bg-base: #070a12;
    --admin-card-bg: rgba(15, 23, 42, 0.88);
    --admin-card-bg-solid: #0f172a;
    --admin-card-border: rgba(51, 65, 85, 0.65);
    --admin-input-bg: #090d16;
    --admin-input-border: #1e293b;
    --admin-input-focus-border: #0ea5e9;
    --admin-text-main: #f8fafc;
    --admin-text-muted: #94a3b8;
    --admin-text-subtle: #64748b;
}

/* Glass Card & Dashboard Panels */
.glass-card {
    background-color: var(--admin-card-bg-solid) !important;
    background: var(--admin-card-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--admin-card-border) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.25) !important;
    color: var(--admin-text-main);
}

.glass-card-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.5), 0 0 20px -3px rgba(14, 165, 233, 0.18) !important;
}

/* Eye-Comfort Input, Textarea & Select Controls */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    background-color: var(--admin-input-bg) !important;
    color: var(--admin-text-main) !important;
    border: 1px solid var(--admin-input-border) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    background-color: #0c121e !important;
    border-color: var(--admin-input-focus-border) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--admin-text-subtle) !important;
    opacity: 0.85;
}

/* Select element options styling */
select option {
    background-color: #0f172a;
    color: #f8fafc;
}

/* Form Labels - Soft, legible without glaring */
label {
    color: var(--admin-text-muted);
    letter-spacing: 0.015em;
}

/* Table Headings & Cell Contrast */
table thead tr {
    background-color: #090d16 !important;
    border-bottom: 1px solid #1e293b !important;
}

table thead th {
    color: var(--admin-text-muted) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
}

table tbody tr {
    border-bottom: 1px solid rgba(30, 41, 59, 0.7) !important;
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: rgba(30, 41, 59, 0.45) !important;
}

/* Soft Pill Badges */
.badge-active {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-passive {
    background-color: rgba(71, 85, 105, 0.25);
    color: #94a3b8;
    border: 1px solid rgba(71, 85, 105, 0.45);
}

.badge-schema {
    background-color: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Premium Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 6px 18px 0 rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}

/* Eye-Friendly Admin Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #080c15;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Typography polish for crisp readability */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
