/* ============================
   GENEL YAPI
============================ */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f8f9fb;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Flex layout: Sidebar + İçerik */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================
   SIDEBAR (YAN MENÜ)
============================ */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2a6efc 0%, #002f8e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-logo {
    max-width: 120px;
    display: block;
    margin: 0 auto 15px;
}

.sidebar .navbar-brand {
    color: #ffde59;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    margin-bottom: 20px;
}

.sidebar-nav .nav-link {
    color: #e9eefb;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, color 0.3s, border-left 0.3s;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255, 222, 89, 0.25);
    border-left: 4px solid #ff4d4d;
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(255, 222, 89, 0.3);
    border-left: 4px solid #ff4d4d;
    color: #fff;
    font-weight: 600;
}

/* ============================
   ANA İÇERİK ALANI
============================ */
.content-wrapper {
    margin-left: 250px;
    flex-grow: 1;
    background-color: #fff;
    min-height: 100vh;
    display: block !important; /* override flex */
}

/* Üstteki küçük navbar */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ============================
   BUTONLAR VE FORMLAR
============================ */
.btn {
    display: inline-block;
    background-color: #2a6efc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}
.btn:hover {
    background-color: #ff4d4d;
}

/* ============================
   STUDENT DASHBOARD LAYOUT
============================ */
.student-dashboard {
    background: #f8fafc;
    padding: 30px;
    font-family: 'Poppins', sans-serif;
}

/* Banner */
.dashboard-banner {
    background: linear-gradient(135deg, #007bff, #00aaff);
    color: white;
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.dashboard-banner h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}
.dashboard-banner p {
    opacity: 0.9;
    margin-top: 8px;
}

/* GRID LAYOUT */
.dashboard-layout {
    display: grid !important;
    grid-template-columns: 2fr 1.2fr !important;
    gap: 25px;
    align-items: start;
}

/* SOL KOLON: Kurslar, Ödevler, Canlı Dersler */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SAĞ KOLON: Gamification, Günün Kelimesi */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dashboard Kartları */
.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    padding: 20px;
}
.dashboard-card h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

/* Mini liste (ödev vs) */
.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* XP / Level Bar */
.xp-track {
    background: #e9ecef;
    border-radius: 10px;
    height: 14px;
    overflow: hidden;
    margin: 10px 0;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff6b6b);
    transition: width 0.4s ease;
}

/* Rozetler */
.badge-pill {
    background: gold;
    color: #333;
    padding: 6px 10px;
    border-radius: 15px;
    margin: 4px;
    display: inline-block;
    font-size: 0.9rem;
}

/* Günün kelimesi */
.word {
    font-size: 1.3rem;
    color: #007bff;
    font-weight: 600;
}
.meaning {
    color: #666;
}

/* Stats kutuları */
.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 10px;
}
.stats-grid strong {
    display: block;
    font-size: 1.4rem;
    color: #007bff;
}
.stats-grid span {
    color: #555;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary, .btn-outline {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, #00aaff, #007bff);
    color: white;
}
.btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
}
.btn-primary:hover, .btn-outline:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .sidebar {
      left: -250px;
    }
    .sidebar.show {
      left: 0;
    }
    .content-wrapper {
      margin-left: 0 !important;
    }
    iframe, video {
      max-width: 100%;
      height: auto !important;
    }
  }