/* Global Styles */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f8f9fa;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* Modern Navbar Styles */
.navbar-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.3" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Brand Styles */
.navbar-brand-modern {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-link:hover {
    color: white;
    transform: scale(1.02);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffd700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-link:hover .brand-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* User Menu Styles */
.navbar-user {
    position: relative;
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-info.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Section Styles */
.dropdown-section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 20px 12px 20px;
    padding: 0;
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.dropdown-item-modern:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    transform: translateX(4px);
}

.dropdown-item-modern i {
    width: 20px;
    margin-right: 12px;
    font-size: 14px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.dropdown-item-modern:hover i {
    color: #3b82f6;
}

.dropdown-item-modern span {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.user-info-large h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.user-info-large p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

.dropdown-menu-items {
    padding: 0.5rem 0;
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item-modern:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item-modern i {
    width: 20px;
    text-align: center;
    color: #6c757d;
    transition: color 0.2s ease;
}

.dropdown-item-modern:hover i {
    color: #667eea;
}

.notification-badge {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

.dropdown-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Auth Buttons (for non-authenticated users) */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-login, .btn-register {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-register {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: 700;
}

.btn-register:hover {
    background: linear-gradient(45deg, #ffed4e, #fff200);
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .user-info {
        min-width: auto;
        padding: 0.5rem;
    }
    
    .user-details {
        display: none;
    }
    
    .user-dropdown {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        z-index: 1001;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-login, .btn-register {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar-content {
        padding: 0 0.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobil için dropdown header padding düzenlemesi */
    .dropdown-header {
        padding: 1rem;
    }
    
    .user-avatar-large {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .user-info-large h5 {
        font-size: 1rem;
    }
    
    .user-info-large p {
        font-size: 0.8rem;
    }
    
    /* Mobil için dropdown item padding */
    .dropdown-item-modern {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-footer {
        padding: 0.75rem 1rem;
    }
    
    .logout-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .user-dropdown {
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .navbar-modern {
        padding: 0.75rem 0;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Card Animations */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Dashboard Stats */
.card-body i.fa-3x, .card-body i.fa-4x {
    opacity: 0.8;
}

/* Login/Register Card */
.card.shadow {
    border: none;
    border-radius: 1rem;
}

/* Validation Errors */
.field-validation-error {
    font-size: 0.875rem;
}

.validation-summary-errors {
    margin-bottom: 1rem;
}

/* Phone Input Styles */
.phone-focused {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.input-group-text.bg-primary {
    border-color: #0d6efd;
}

.input-group:focus-within .input-group-text.bg-primary {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Phone validation animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#phoneValidationMessage {
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .input-group-text {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

/* Navbar Left Container */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navbar Back Button */
.navbar-back-button {
    display: none; /* Default hidden */
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.6rem 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

.navbar-back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

.navbar-back-button i {
    font-size: 0.9rem;
}

/* Show back button only on mobile and non-dashboard pages */
@media (max-width: 768px) {
    .navbar-back-button {
        display: inline-flex;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .navbar-left {
        gap: 0.8rem;
    }
    
    /* Hide on dashboard */
    body.dashboard-page .navbar-back-button {
        display: none;
    }
    
    /* Make brand text smaller on mobile when back button is present */
    .navbar-back-button ~ .navbar-brand-modern .brand-name {
        font-size: 1rem;
    }
    
    .navbar-back-button ~ .navbar-brand-modern .brand-tagline {
        font-size: 0.7rem;
    }
}

/* Dashboard Widget Styles */
.dashboard-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.widget-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header .btn-outline-primary {
    border-color: #8e44ad;
    color: #8e44ad;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.widget-header .btn-outline-primary:hover {
    background: #8e44ad;
    border-color: #8e44ad;
    color: white;
    transform: translateY(-1px);
}

.widget-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: #8e44ad;
    font-size: 0.9rem;
}

.widget-link {
    font-size: 0.8rem;
    color: #8e44ad;
    text-decoration: none;
    font-weight: 500;
}

.widget-link:hover {
    color: #6c2c8a;
    text-decoration: underline;
}

.widget-content {
    padding: 1.25rem;
}

/* Son Aktiviteler Widget */
.activity-list {
    /* Scrollbar kaldırıldı - tüm içerik görünür */
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.activity-icon.exam {
    background: linear-gradient(135deg, #17a2b8, #007bff);
}

.activity-icon.lesson {
    background: linear-gradient(135deg, #8e44ad, #6f42c1);
}

.activity-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.activity-text {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Sınav Sonuçları Widget */
.exam-list {
    /* Scrollbar kaldırıldı - tüm içerik görünür */
}

.exam-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-score {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.exam-score {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.exam-score.failed {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.exam-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.exam-level {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.exam-date {
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Gelişim Önerileri Widget */
.suggestions-list {
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8e44ad, #6f42c1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

.suggestion-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

.suggestion-priority {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    flex-shrink: 0;
}

.suggestion-priority.high {
    background: #dc3545;
}

.suggestion-priority.medium {
    background: #ffc107;
}

.suggestion-priority.low {
    background: #6c757d;
}

/* Haftalık Hedefler Widget */
.goals-list {
    /* Scrollbar kaldırıldı - tüm içerik görünür */
}

/* Boş Doughnut Chart */
.pie-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

/* AI Indicator */
.ai-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-indicator i {
    font-size: 1rem;
    color: #fbbf24;
}

.ai-indicator span {
    color: white;
}

/* Puan Sıralaması Widget */
.dashboard-widget.leaderboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaderboard-list {
    padding: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(2px);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.leaderboard-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.leaderboard-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    box-shadow: 0 4px 8px rgba(192, 192, 192, 0.3);
}

.leaderboard-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    box-shadow: 0 4px 8px rgba(205, 127, 50, 0.3);
}

.leaderboard-rank.rank-other {
    background: linear-gradient(135deg, #6c757d 0%, #8a959f 100%);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.leaderboard-user {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
}

.leaderboard-points {
    font-weight: 700;
    font-size: 1.1rem;
    color: #8e44ad;
    flex-shrink: 0;
}

/* Leaderboard Kullanıcı İşaretleme */
.leaderboard-item.current-user {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.leaderboard-item.current-user:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.current-user-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.leaderboard-info {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.user-rank-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-rank-info i {
    color: #3b82f6;
    font-size: 1rem;
}

/* Leaderboard Loading ve Error Stilleri */
.leaderboard-loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

.leaderboard-error {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
    font-weight: 600;
}

/* Cümle Oyunu Stilleri */
.sentence-game-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.game-header {
    color: white;
    margin-bottom: 3rem;
}

.game-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

.game-area {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.timer-section {
    margin-bottom: 2rem;
}

.timer-display {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.timer-display i {
    margin-right: 0.5rem;
    color: #ffeaa7;
}

.sentence-display {
    text-align: center;
    margin-bottom: 2rem;
}

.target-sentence-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.target-sentence-text.correct {
    color: #00b894;
}

.turkish-hint {
    font-size: 1rem;
    color: #636e72;
}

.game-board {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.words-area, .answer-area {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px dashed #dee2e6;
}

.words-area {
    height: auto;
}

.answer-area {
    height: auto;
}

.words-title, .answer-title {
    color: #495057;
    margin-bottom: 1rem;
    text-align: center;
}

.shuffled-words {
    background: linear-gradient(135deg, #f1f3f5, #dee2e6);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: flex-start;
    height: calc(100% - 3rem);
    min-height: 80px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 0.75rem;
}

.word-item {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
    user-select: none;
}

.word-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

.word-item:active {
    cursor: grabbing;
}

.answer-slots {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 120px;
    height: auto;
    overflow: visible;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
}

.answer-slot {
    background: #ffffff;
    border: 2px dotted #495057;
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-slot:hover {
    border-color: #74b9ff;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.answer-slot.drag-over {
    border-color: #74b9ff;
    background-color: #e3f2fd;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

.placed-word {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
    cursor: grab;
    user-select: none;
    transition: all 0.3s ease;
}

.placed-word:active {
    cursor: grabbing;
    transform: scale(0.95);
}

/* Puan Detayları Stilleri */
.score-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.score-breakdown .text-muted div {
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-breakdown .text-muted div:last-child {
    border-bottom: none;
}



.game-controls {
    margin-top: 2rem;
}

.game-controls .btn {
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-display {
    margin-top: 2rem;
}

.instructions {
    color: white;
}

.instructions .card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.instructions .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.instructions .card-body {
    color: rgba(255, 255, 255, 0.9);
}

.instructions ol li {
    margin-bottom: 0.5rem;
}

.empty-chart-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
    display: none;
}

.empty-chart-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-chart-text h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-chart-text p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.7;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-info {
    flex: 1;
}

.goal-title {
    display: block;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-progress .progress {
    flex: 1;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress .progress-bar {
    background: linear-gradient(90deg, #8e44ad, #6f42c1);
    height: 100%;
    transition: width 0.3s ease;
}

.goal-status {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.goal-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17a2b8, #007bff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}



/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-widget {
        margin-bottom: 1rem;
    }
    
    .widget-header {
        padding: 0.75rem 1rem;
    }
    
    .widget-content {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 0.9rem;
    }
    
    .activity-item,
    .exam-item,
    .suggestion-item,
    .goal-item {
        padding: 0.5rem 0;
    }
}

/* Dashboard Modül Kartları - Modern Tasarım */
.module-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.module-card:hover::before {
    height: 6px;
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.module-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.module-card:hover h4 {
    color: #0f172a;
    transform: translateY(-2px);
}

/* Modül Renkleri - Modern Gradient */
.module-card.module-trainings {
    border-color: #3b82f6;
}

.module-card.module-trainings::before {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.module-card.module-trainings .module-icon {
    color: #3b82f6;
}

.module-card.module-trainings:hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.module-card.module-flashcards {
    border-color: #10b981;
}

.module-card.module-flashcards::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.module-card.module-flashcards .module-icon {
    color: #10b981;
}

.module-card.module-flashcards:hover {
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
}

.module-card.module-conversations {
    border-color: #8b5cf6;
}

.module-card.module-conversations::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.module-card.module-conversations .module-icon {
    color: #8b5cf6;
}

.module-card.module-conversations:hover {
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.module-card.module-grammar {
    border-color: #f59e0b;
}

.module-card.module-grammar::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.module-card.module-grammar .module-icon {
    color: #f59e0b;
}

.module-card.module-grammar:hover {
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
}

.module-card.module-idioms {
    border-color: #ef4444;
}

.module-card.module-idioms::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.module-card.module-idioms .module-icon {
    color: #ef4444;
}

.module-card.module-idioms:hover {
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.3);
}

.module-card.module-stories {
    border-color: #06b6d4;
}

.module-card.module-stories::before {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
}

.module-card.module-stories .module-icon {
    color: #06b6d4;
}

.module-card.module-stories:hover {
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.3);
}

.module-card.module-pronunciation {
    border-color: #84cc16;
}

.module-card.module-pronunciation::before {
    background: linear-gradient(90deg, #84cc16 0%, #65a30d 100%);
}

.module-card.module-pronunciation .module-icon {
    color: #84cc16;
}

.module-card.module-pronunciation:hover {
    box-shadow: 0 20px 50px rgba(132, 204, 22, 0.3);
}

.module-card.module-video {
    border-color: #f97316;
}

.module-card.module-video::before {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.module-card.module-video .module-icon {
    color: #f97316;
}

.module-card.module-video:hover {
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.3);
}

.module-card.module-games {
    border-color: #ff9800;
}

.module-card.module-games::before {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.module-card.module-games .module-icon {
    color: #ff9800;
}

.module-card.module-games:hover {
    box-shadow: 0 20px 50px rgba(255, 152, 0, 0.3);
}

.module-card.module-hangman {
    border-color: #e91e63;
}

.module-card.module-hangman::before {
    background: linear-gradient(90deg, #e91e63 0%, #c2185b 100%);
}

.module-card.module-hangman .module-icon {
    color: #e91e63;
}

.module-card.module-hangman:hover {
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.3);
}

.module-card.module-history {
    border-color: #9c27b0;
}

.module-card.module-history::before {
    background: linear-gradient(90deg, #9c27b0 0%, #7b1fa2 100%);
}

.module-card.module-history .module-icon {
    color: #9c27b0;
}

.module-card.module-history:hover {
    box-shadow: 0 20px 50px rgba(156, 39, 176, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .module-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .module-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .module-card h4 {
        font-size: 1rem;
    }
}

/* Dashboard Profil Butonu */
.profile-button-container {
    margin-top: 1rem;
    text-align: center;
}

.profile-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.profile-button i {
    font-size: 1rem;
}

/* Leaderboard Kullanıcı İşaretleme */