/**
 * Kodteslimal – Modern Dark Dashboard
 * Tailwind CDN yok; tüm stiller bu dosyada manuel kontrol.
 * Palet: #0f172a | #1e293b | #334155 | Vurgu: #8b5cf6 / #ef4444
 */

body {
    background-color: #0f172a;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-deep { background-color: #0f172a; }
.bg-deep-dark { background-color: #0b0e14; }
.bg-card { background-color: #1e293b; }

/* ========== ADMIN LAYOUT – Tailwind yerine manuel (sidebar + main) ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 16rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(51, 65, 85, 0.6);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}
.admin-sidebar-logo {
    flex-shrink: 0;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    padding: 0 1rem;
}
.admin-sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f87171;
    text-decoration: none;
    transition: color 0.2s;
}
.admin-sidebar-logo a:hover { color: #fca5a5; }
.admin-sidebar-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
}
.admin-sidebar-logo-icon svg,
.admin-sidebar-logo-icon i { width: 1.25rem; height: 1.25rem; color: #f87171; }
.admin-sidebar-logo-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
}
.admin-sidebar-nav a:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
}
.admin-sidebar-nav a.admin-nav-link--active {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    margin-left: -3px;
    padding-left: 15px;
}
.admin-sidebar-nav a i { flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.admin-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    padding: 0.75rem;
}
.admin-sidebar-username {
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-sidebar-logout {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.admin-sidebar-logout:hover { background: rgba(51, 65, 85, 0.6); color: #f87171; }
.admin-sidebar-logout i { width: 1rem; height: 1rem; }
.admin-main-wrap { flex: 1; display: flex; flex-direction: column; padding-left: 16rem; }
.admin-main {
    flex: 1;
    padding: 2rem 1.5rem;
}
@media (min-width: 640px) { .admin-main { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .admin-main { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* ========== ADMIN LOGIN – Tailwind yerine manuel ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-wrap { width: 100%; max-width: 28rem; }
.login-brand {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #f87171;
    text-decoration: none;
}
.login-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
}
.login-brand-icon i { width: 1.5rem; height: 1.5rem; color: #f87171; }
.login-brand-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }
.login-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #1e293b;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.login-card h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}
.login-alert-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}
.login-field { margin-bottom: 1.25rem; }
.login-field:last-of-type { margin-bottom: 1.5rem; }
.login-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}
.login-field input {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
}
.login-field input::placeholder { color: #64748b; }
.login-field--checkbox { margin-bottom: 1rem; }
.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #cbd5e1;
}
.login-remember input[type="checkbox"] { width: auto; margin: 0; accent-color: #ef4444; }
.login-field input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}
.login-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background: #ef4444;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.login-btn:hover {
    background: #f87171;
    box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.3);
}

.admin-alert-success {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
}
.admin-alert-error {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

/* ========== Kodteslimal popup – onay ve mesaj (varsayılan tarayıcı uyarısı yok) ========== */
.otokod-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.otokod-modal-overlay.otokod-modal-visible {
    opacity: 1;
    visibility: visible;
}
.otokod-modal {
    width: 100%;
    max-width: 24rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    background: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s;
}
.otokod-modal-overlay.otokod-modal-visible .otokod-modal {
    transform: scale(1);
}
.otokod-modal-title {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}
.otokod-modal-body {
    padding: 0.5rem 1.25rem 1rem;
    font-size: 0.9375rem;
    color: #e2e8f0;
    line-height: 1.5;
}
.otokod-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #334155;
}
.otokod-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.otokod-btn--primary {
    background: #ef4444;
    color: #ffffff;
}
.otokod-btn--primary:hover {
    background: #f87171;
}
.otokod-btn--secondary {
    background: #334155;
    color: #e2e8f0;
}
.otokod-btn--secondary:hover {
    background: #475569;
}
.otokod-btn--success {
    background: #22c55e;
    color: #ffffff;
}
.otokod-btn--success:hover {
    background: #4ade80;
}
.otokod-alert-icon { margin-bottom: 0.5rem; }
.otokod-alert-icon.otokod-alert--success { color: #6ee7b7; }
.otokod-alert-icon.otokod-alert--error { color: #fca5a5; }

/* Bilgi popup – tik animasyonu, ortalı */
.otokod-success-tick {
    display: none;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}
#otokod-alert-overlay.otokod-alert--success .otokod-modal {
    text-align: center;
}
#otokod-alert-overlay.otokod-alert--success .otokod-success-tick {
    display: block;
    margin-top: 0.5rem;
}
#otokod-alert-overlay.otokod-alert--success .otokod-modal-title,
#otokod-alert-overlay.otokod-alert--success .otokod-modal-body {
    text-align: center;
}
#otokod-alert-overlay.otokod-alert--success .otokod-modal-footer {
    justify-content: center;
}
.otokod-success-tick svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.otokod-success-tick .tick-circle {
    fill: none;
    stroke: #22c55e;
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: otokod-tick-circle 0.45s ease-out forwards;
    transform-origin: center;
}
.otokod-success-tick .tick-mark {
    fill: none;
    stroke: #22c55e;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 45;
    stroke-dashoffset: 45;
    animation: otokod-tick-mark 0.3s ease-out 0.3s forwards;
}
@keyframes otokod-tick-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes otokod-tick-mark {
    to { stroke-dashoffset: 0; }
}

/* ========== UTILITY – Tailwind yerine manuel (sayfa başlıkları, metin renkleri) ========== */
.text-white { color: #ffffff !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-red-400 { color: #f87171 !important; }
.text-red-300 { color: #fca5a5 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.block { display: block; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; margin-left: auto; margin-right: auto; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.tracking-tight { letter-spacing: -0.025em; }
.shrink-0 { flex-shrink: 0; }
.hidden { display: none !important; }
@media (min-width: 640px) { .sm\:inline { display: inline !important; } }

/* ========== ADMIN DASHBOARD – kartlar ve hızlı erişim ========== */
.dashboard-section { margin-bottom: 2.5rem; }
.dashboard-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; color: #ffffff; }
.dashboard-subtitle { margin-top: 0.5rem; font-size: 0.875rem; color: #94a3b8; }
.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .dashboard-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dashboard-cards { grid-template-columns: repeat(4, 1fr); } }
.dashboard-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.dashboard-card-inner {
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #1e293b;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dashboard-card:hover .dashboard-card-inner {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.3);
}
.dashboard-card-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.dashboard-card-body > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 2.75rem; /* ikon kutusu ile aynı yükseklik */
}
.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.dashboard-card:hover .dashboard-card-icon { background: rgba(239, 68, 68, 0.3); }
.dashboard-card-icon i { width: 1.35rem; height: 1.35rem; }
.dashboard-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.dashboard-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1;
}
.dashboard-quick {
    margin-top: 2.5rem;
}
.dashboard-quick-inner {
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #1e293b;
    padding: 1.5rem;
}
@media (min-width: 640px) { .dashboard-quick-inner { padding: 2rem; } }
.dashboard-quick-title {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.dashboard-quick-title i { width: 1rem; height: 1rem; color: #f87171; }
.dashboard-quick-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.dashboard-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dashboard-quick-btn--primary {
    background: #ef4444;
    color: #ffffff;
    border: none;
}
.dashboard-quick-btn--primary:hover {
    background: #f87171;
    box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.3);
}
.dashboard-quick-btn--outline-red {
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: transparent;
    color: #f87171;
}
.dashboard-quick-btn--outline-red:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}
.dashboard-quick-btn--secondary {
    border: 1px solid #475569;
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e1;
}
.dashboard-quick-btn--secondary:hover {
    border-color: #64748b;
    background: rgba(51, 65, 85, 0.5);
}
.dashboard-quick-btn i { width: 1rem; height: 1rem; }

/* Başlık Filtreleri / genel kart kutusu */
.subject-filter-card,
.admin-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #1e293b;
    padding: 1rem;
}
.subject-filter-card h2,
.admin-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}
.text-base { font-size: 1rem !important; }

/* ========== USER LAYOUT – header + main (Tailwind yok) ========== */
.user-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.user-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}
@media (min-width: 640px) { .user-header-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .user-header-inner { padding-left: 2rem; padding-right: 2rem; } }
.user-header-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    color: #f87171;
    text-decoration: none;
}
.user-header-logo:hover { color: #fca5a5; }
.user-header-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
}
.user-header-logo-icon i { width: 1.25rem; height: 1.25rem; color: #f87171; }
.user-header-logo-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
@media (max-width: 639px) { .user-header-logo-text { display: none; } }
.user-header-nav { display: flex; flex: 1; align-items: center; justify-content: center; }
.user-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}
.user-header-nav a {
    flex-shrink: 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    text-decoration: none;
}
@media (min-width: 640px) { .user-header-nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; } }
.user-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1rem 1rem;
    box-sizing: border-box;
}
@media (min-width: 640px) { .user-main { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .user-main { padding-left: 2rem; padding-right: 2rem; } }

/* ========== USER PANEL – Stok Kodu Girişi formu ========== */
.user-form-wrap {
    max-width: 42rem;
    margin: 1rem auto 0;
    width: 100%;
}
.user-form-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #1e293b;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 640px) { .user-form-card { padding: 1.5rem 2rem; } }
.user-form-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}
.user-form-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.user-form-header-icon i { width: 1.5rem; height: 1.5rem; }
.user-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
}
@media (min-width: 640px) { .user-form-title { font-size: 1.5rem; } }
.user-form-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}
.user-form-field { margin-bottom: 0.75rem; }
.user-form-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}
.user-form-field input {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
}
.user-form-field input::placeholder { color: #64748b; }
.user-form-field input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}
.user-form-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: #ef4444;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.user-form-btn:hover {
    background: #f87171;
    box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.35);
}
.user-form-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px rgba(239, 68, 68, 0.4);
}
/* Sonuç sayfası: durum kutusu ve “Yeni Kod Gir” linki */
.user-form-result-alert {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}
.user-form-result-alert--success {
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
}
.user-form-result-alert--warning {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}
.user-form-result-alert--danger {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}
.user-form-result-code {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: rgba(30, 41, 59, 0.6);
    text-align: center;
}
.user-form-result-code-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.user-form-result-code-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
    font-family: ui-monospace, monospace;
}
.user-form-link {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f87171;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.user-form-link:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}
.user-form-link i { width: 1rem; height: 1rem; }

/* Activation-wait sayfası: bloklar arası boşluk, üst üste binme olmasın */
#activation-wait-card .activation-block {
    margin-bottom: 1.25rem;
}
#activation-wait-card .activation-block:last-of-type {
    margin-bottom: 0;
}
#activation-wait-card .activation-link {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 0;
}

.user-form-alert-success { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.1); color: #6ee7b7; }

/* Bilgilendirme baloncuğu – header’a yakın, üstte */
.user-info-bubble {
    flex-shrink: 0;
    z-index: 30;
    max-width: 42rem;
    margin: 0.75rem auto 0.5rem;
    padding: 0.6rem 1rem 0.75rem;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.user-info-bubble-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}
.user-info-bubble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #f59e0b;
    animation: user-bubble-icon-pulse 1.2s ease-in-out infinite;
}
.user-info-bubble-icon i { width: 1rem; height: 1rem; }
@keyframes user-bubble-icon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}
.user-info-bubble-text {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}
.user-info-bubble-text p { margin: 0 0 0.5rem 0; }
.user-info-bubble-text p:last-child { margin-bottom: 0; }
.user-info-bubble-text ol {
    margin: 0.5rem 0 0 1.25rem;
    padding-left: 0.25rem;
}
.user-info-bubble-text li { margin-bottom: 0.25rem; }
.user-info-bubble-text strong { color: #e2e8f0; }
.user-info-bubble--note {
    margin-top: 0.75rem;
}
.user-info-bubble--note .user-info-bubble-icon { color: #f59e0b; }

/* İlk giriş popup – bilgilendirme / sorumluluk reddi */
.user-disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.user-disclaimer-overlay.user-disclaimer-visible {
    opacity: 1;
    visibility: visible;
}
.user-disclaimer-popup {
    width: 100%;
    max-width: 28rem;
    padding: 1.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.user-disclaimer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 1rem;
}
.user-disclaimer-body {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.user-disclaimer-body p { margin: 0 0 0.75rem; }
.user-disclaimer-body p:last-child { margin-bottom: 0; }
.user-disclaimer-body strong { color: #e2e8f0; }
.user-disclaimer-btn { margin: 0; }

/* ========== 1. TEXT CONTRAST – Dark theme okunabilir metin ========== */
th,
.table-header,
.filter-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}
label,
.form-label,
label.form-label,
main label {
    color: #ffffff !important;
    font-weight: 600 !important;
}
main p,
p,
body main p {
    color: #ffffff !important;
}
/* Başlık / vurgu metinleri kalın */
th, .table-header, .filter-title, label {
    font-weight: 600 !important;
}
/* Paragraflar için normal ağırlık (text-muted hariç) */
main p.text-muted,
p.text-muted,
.text-muted {
    color: #cbd5e1 !important;
    font-weight: 400 !important;
}

/* ========== 2. INPUT & DROPDOWN DESIGN – Dark theme (Başlık Filtreleri dahil) ========== */
input.form-control,
select.form-select,
textarea.form-control,
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"] {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
}
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8 !important;
}
select.form-select option,
.form-select option {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}
input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35) !important;
}
.form-control-sm.form-control,
.form-select-sm.form-select {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
}
.form-control-sm.form-control:focus,
.form-select-sm.form-select:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35) !important;
}

/* ========== 3. TABLO VE LİSTE – Dark mode zebra + okunabilir metin ========== */
/* th #ffffff, td #e2e8f0 – zebra striping rengi satır metnini ezmesin diye color sadece th/td'de */
.table-admin {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}
.table-admin thead th {
    border-bottom: 1px solid #334155;
    padding: 0.875rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff !important;
    background-color: #1e293b !important;
}
.table-admin tbody td {
    border-bottom: 1px solid #334155;
    padding: 0.875rem 1rem;
    color: #ffffff !important;
}
.table-admin tbody tr:hover td {
    color: #ffffff !important;
}
.table-admin tbody tr:hover {
    background: #334155 !important;
    transition: background 0.2s;
}

.table thead th,
.table th {
    border: none;
    border-bottom: 1px solid #334155;
    padding: 0.875rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff !important;
    background-color: #1e293b !important;
}
.table td,
.table tbody td {
    border: none;
    border-bottom: 1px solid #334155;
    padding: 0.875rem 1rem;
    color: #ffffff !important;
}
.table tbody td a {
    color: #ffffff !important;
}
.table tbody td a:hover {
    color: #ffffff !important;
}
/* Hover'da metin rengi değişmesin – hep beyaz kalsın */
.table tbody tr:hover td,
.table tbody tr:hover td code,
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover td code {
    color: #ffffff !important;
}
/* Zebra striping – sadece arka plan, metin rengi yok (th/td'de sabit) */
.table tbody tr,
.table-admin tbody tr {
    transition: background 0.2s;
}
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-child(odd) {
    background-color: #1e293b !important;
}
.table-striped tbody tr:nth-of-type(even),
.table-striped tbody tr:nth-child(even) {
    background-color: #0f172a !important;
}
/* Striped olmayan tablolar – varsayılan tek arka plan */
.table:not(.table-striped) tbody tr,
.table-admin tbody tr {
    background-color: #1e293b !important;
}
/* Hover – sadece arka plan değişir, metin hep beyaz kalır */
.table-hover tbody tr:hover,
.table tbody tr:hover,
.table-admin tbody tr:hover {
    background: #334155 !important;
    transition: background 0.2s;
}
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover td *,
.table tbody tr:hover td,
.table tbody tr:hover td * {
    color: #ffffff !important;
}
.table-striped tbody tr:hover {
    background: #334155 !important;
    transition: background 0.2s;
}
.table-striped tbody tr:hover td,
.table-striped tbody tr:hover td * {
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .table-responsive .table { font-size: 0.8125rem; }
    .table-responsive .table th,
    .table-responsive .table td { padding: 0.5rem 0.5rem; }
}

/* ========== 4. BUTTON DESIGN – Modern mor vurgu ========== */
.btn-primary,
button.btn-primary,
a.btn-primary {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
}
.btn-primary:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
}
.btn-sm.btn-primary {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}
.btn-sm.btn-primary:hover {
    background: #7c3aed !important;
}
.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px rgba(139, 92, 246, 0.4);
}
.btn-outline-primary {
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.6);
    background: transparent;
    color: #a78bfa;
    padding: 8px 14px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    color: #c4b5fd;
}
.btn-outline-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px rgba(139, 92, 246, 0.4);
}
.btn-outline-secondary {
    border-radius: 6px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #94a3b8;
    padding: 8px 14px;
    font-weight: 600;
}
.btn-outline-secondary:hover {
    background: #334155;
    color: #e2e8f0;
}
.btn-outline-secondary:focus-visible,
.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px rgba(100, 116, 139, 0.3);
}
/* Sil butonu – solid kırmızı (Başlık Filtreleri vb.) */
.btn-outline-danger,
.btn-danger {
    border-radius: 6px;
    border: none !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
}
.btn-outline-danger:hover,
.btn-danger:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}
.btn-sm.btn-outline-danger,
.btn-sm.btn-danger {
    padding: 6px 12px !important;
}
.btn-outline-danger:focus-visible,
.btn-danger:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35) !important;
}

.btn-secondary {
    border-radius: 6px;
    border: none;
    background: #334155 !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
}
.btn-secondary:hover {
    background: #475569 !important;
    color: #ffffff !important;
}

.btn-link,
a.btn-link {
    color: #94a3b8 !important;
    text-decoration: none;
}
.btn-link:hover {
    color: #f87171 !important;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.bg-success { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; }
.bg-danger { background-color: rgba(239, 68, 68, 0.2); color: #f87171; }
.bg-warning { background-color: rgba(234, 179, 8, 0.2); color: #facc15; }
.bg-secondary { background-color: rgba(100, 116, 139, 0.3); color: #94a3b8; }

/* ========== 5. SPACING – Kart ve tablo ========== */
.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px !important;
    margin-bottom: 24px !important;
}
.table-container,
.table-responsive {
    margin-top: 16px;
}
/* Genel UI etiketleri – "Henüz kayıt yok", açıklama metinleri, sayfa altı bilgisi */
.text-muted,
main .text-muted,
p.text-muted,
td.text-muted,
.list-group-item.text-muted {
    color: #cbd5e1 !important;
}
.text-muted a {
    color: #f87171 !important;
}

/* Genel tipografi – tüm metinler açık renk */
body, .card, .table, main, .card-body, p, td {
    color: #cbd5e1;
}
main .form-label, main label, main p, main .small, main small {
    color: #cbd5e1 !important;
}
main p {
    color: #cbd5e1 !important;
}
/* Tailwind text-slate-400 / text-slate-300 – koyu temada okunabilir yap */
main p.text-slate-400,
.text-slate-400 {
    color: #cbd5e1 !important;
}
main .text-slate-300,
main h2.text-slate-300,
label.text-slate-300 {
    color: #f8fafc !important;
}
.text-dark { color: #f8fafc !important; }
.text-body { color: #cbd5e1 !important; }
.small, small {
    color: #cbd5e1 !important;
}
code {
    background-color: rgba(51, 65, 85, 0.6) !important;
    color: #f8fafc !important;
    padding: 0.2em 0.5em;
    border-radius: 6px;
}
.card-body { color: #cbd5e1 !important; }
.card-title, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #f8fafc !important;
}

/* Pagination – kırmızı aktif */
.pagination { gap: 0.25rem; }
.pagination .page-link {
    background: #1e293b !important;
    border: 1px solid #334155;
    color: #ffffff;
    border-radius: 6px;
}
.pagination .page-link:hover {
    background: #334155 !important;
    color: #ffffff;
}
.pagination .page-item.active .page-link {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: #fff !important;
}
.pagination .page-item.disabled .page-link {
    background-color: #0f172a;
    color: #64748b;
}

/* List group – Başlık Filtreleri, Stok Kodları, Loglar liste satırları (dark theme) */
.list-group,
ul.list-group {
    background: transparent !important;
    border: none !important;
}
.list-group-item {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: none !important;
    border-bottom: 1px solid #334155 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin-bottom: 6px !important;
    transition: background 0.2s;
}
.list-group-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}
.list-group-item:hover {
    background: #334155 !important;
    color: #e2e8f0 !important;
    transition: background 0.2s;
}
.list-group-flush .list-group-item {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 10px !important;
}
.list-group-flush .list-group-item:hover {
    background: #334155 !important;
}
.list-group-item.text-muted {
    color: #94a3b8 !important;
}
/* Log satırları ve veri listeleri – td rengi hep beyaz, hover'da değişmez */
tr.log-item td,
.log-item td,
.table tbody tr td {
    color: #ffffff !important;
}
.table tbody tr td code {
    color: #ffffff !important;
}
.table tbody tr:hover td,
.table tbody tr:hover td code {
    color: #ffffff !important;
}

/* Checkbox – kırmızı focus ve checked */
.form-check-input {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 4px;
}
.form-check-input:checked {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}
.form-check-input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35) !important;
}
.form-check-label { color: #f8fafc !important; }

/* Başlık Filtreleri – filtre başlıkları ve etiketler beyaz/açık gri */
main h1, main h2, main h3, main h4, main h5 {
    color: #f8fafc !important;
}
main .rounded-xl h2 {
    color: #f8fafc !important;
}

/* ========== TABLO / LOG METİNLERİ – Hep beyaz, hover'da siyah olmasın ========== */
body main .table thead th,
body main table thead th,
main .table thead th,
.table thead th {
    color: #ffffff !important;
}
body main .table tbody td,
body main table tbody td,
main .table tbody td,
.table tbody td,
body main .table tbody tr:hover td,
main .table tbody tr:hover td,
.table tbody tr:hover td {
    color: #ffffff !important;
}
body main .table tbody td code,
main .table tbody td code,
body main .table tbody tr:hover td code,
.table tbody tr:hover td code {
    color: #ffffff !important;
}
body main p.text-muted,
main p.text-muted {
    color: #cbd5e1 !important;
}

/* ========== 6. DARK THEME CONSISTENCY – Saf beyaz (#ffffff) arka plan yok ========== */
/* Palet: #0f172a | #1e293b | #334155 */
.bg-white,
main .bg-white,
body .bg-white,
input.bg-white,
select.bg-white,
.table.bg-white,
.card.bg-white,
.list-group-item.bg-white {
    background-color: #1e293b !important;
}
main input,
main select,
main textarea,
main .form-control,
main .form-select,
main .list-group-item {
    background-color: #1e293b !important;
}
.form-control.bg-white,
.form-select.bg-white {
    background-color: #1e293b !important;
}
.table thead th {
    background-color: #1e293b !important;
    color: #ffffff !important;
}
/* Zebra ve non-striped tr arka planları yukarıdaki "3. TABLO" bloğunda tanımlı */
