:root {
    --sidebar-width: 260px;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f6fb;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

#wrapper {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.75);
    border-radius: .5rem;
    padding: .65rem 1rem;
    margin-bottom: .25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: .875rem;
}

.stat-primary .stat-icon { background: #eef2ff; color: #4f46e5; }
.stat-success .stat-icon { background: #ecfdf5; color: #059669; }
.stat-warning .stat-icon { background: #fffbeb; color: #d97706; }
.stat-info .stat-icon { background: #eff6ff; color: #2563eb; }
.stat-purple .stat-icon { background: #f5f3ff; color: #7c3aed; }
.stat-danger .stat-icon { background: #fef2f2; color: #dc2626; }

.training-card {
    transition: transform .2s, box-shadow .2s;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15,23,42,.1) !important;
}

.training-text-content {
    line-height: 1.7;
    font-size: 1.05rem;
}

.training-text-content .kt-embed-video {
    margin: 1.25rem 0;
    border-radius: .5rem;
    overflow: hidden;
    background: #000;
}

.training-text-content .kt-embed-video video,
.training-text-content video {
    max-width: 100%;
    border-radius: .5rem;
}

.training-text-content iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: .5rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        transform: translateX(-100%);
    }
}

/* İçerik koruması — kursiyer kopyalama / seçim */
.content-protected,
.content-protected * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

.content-protected input,
.content-protected textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
}

@media print {
    .content-protected {
        display: none !important;
    }
}

#examFullscreenOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 45%, #0d9488 100%);
}

.landing-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.landing-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(15,23,42,.15);
}

.sidebar-kursiyer {
    background: linear-gradient(180deg, #065f46 0%, #064e3b 100%) !important;
}

.sidebar-system {
    background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%) !important;
}

.login-icon.text-primary { color: var(--primary) !important; }
.login-icon.text-success { color: #198754 !important; }
.login-icon.text-danger { color: #dc3545 !important; }

.app-footer {
    border-top: 1px solid #e9ecef;
    background: #fff;
}

.app-footer-product {
    font-size: 0.75rem;
    opacity: 0.75;
}

.login-page-footer,
.landing-footer {
    letter-spacing: 0.02em;
}
