:root {
    --ege-navy: #001a33;
    /* Daha derin lacivert */
    --ege-navy-light: #003366;
    --ege-cyan: #00AEEF;
    --dark-bg: rgba(0, 26, 51, 0.95);
    --light-text: #ffffff;
    --accent-blue: #00d2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f4f7f6;
}

/* Video Background Styles */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    /* Aşağıdaki satırı ekle veya değiştir */
    object-position: center bottom;

    transform: scale(1.1);
    transform-origin: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Daha koyu arka plan */
    z-index: 0;
}

/* Login Form Styles */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    /* Yazıların okunması için açık renk kart */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #000000;
    /* Yazılar siyah */
}

.login-card h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.login-card p {
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #000;
    /* Label siyah */
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    /* Input yazısı siyah */
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background: #fff;
    border-color: var(--ege-cyan);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--ege-cyan);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #0096ce;
}

.error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--ege-navy);
    color: white;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--ege-cyan);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(0, 210, 255, 0.15);
    /* Accent blue background */
    color: var(--accent-blue);
    font-weight: 600;
}

.sidebar-header {
    background: rgba(255, 255, 255, 0.05);
    margin: -2rem -1.5rem 2rem -1.5rem;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem;
    background: #f8f9fa;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.user-info {
    font-weight: 500;
}

.logout-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Dashboard Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--ege-navy);
}

.btn-primary {
    background: var(--ege-navy);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.course-list {
    margin-top: 2rem;
}

.course-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Curriculum & Questions */
.topic-list {
    margin-top: 1.5rem;
}

.topic-item {
    padding: 15px;
    border-left: 4px solid var(--ege-cyan);
    background: #fff;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.question-card {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.question-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

/* Enhancements & Animations */
.card,
.course-item,
.topic-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-item:hover {
    border-color: var(--ege-cyan);
    background: #fdfdfd;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
    }

    .sidebar h2 {
        display: none;
    }

    .main-content {
        margin-left: 80px;
        padding: 2rem;
    }

    .nav-links span,
    .nav-links p {
        display: none;
    }

    .nav-links a {
        justify-content: center;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem;
    }

    .sidebar h2 {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .nav-links li {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--ege-navy);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ege-cyan);
}