body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.navbar {
    transition: box-shadow 0.3s ease;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-container {
    padding-top: 80px;
    padding-bottom: 2rem;
    min-height: calc(100vh - 120px);
}

.hero-section {
    background: #1e293b;
    color: white;
    padding: 3rem 0 !important;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-section .lead {
    color: #cbd5e1;
}

.hero-section .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-card {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.modern-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.modern-input:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.modern-btn {
    border-radius: 6px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #1e293b;
    border: none;
}

.modern-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.feature-card {
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    border-color: #1e293b;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.agent-badge i {
    animation: pulse-agent 2s ease-in-out infinite;
}

@keyframes pulse-agent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* DÜZELTME 2: Düzenleme Modu Stilleri */
body.edit-mode .editable-content {
    outline: 2px dashed #0d6efd;
    background-color: #eef5ff;
    padding: 4px;
    border-radius: 4px;
    cursor: text;
    transition: all 0.2s ease;
}

body.edit-mode .editable-content:hover {
    background-color: #dbeafe;
    outline-color: #0066cc;
}

body.edit-mode .editable-content:focus {
    outline: 2px solid #0d6efd;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.editable-content[contenteditable="true"] {
    min-height: 1.5em;
}

.editing-active {
    position: relative;
}

.editing-active::before {
    content: '✏️';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Google Auth Popup */
.google-auth-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    z-index: 9999;
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid #e5e7eb;
}

@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.google-auth-popup.hidden {
    display: none;
}

.google-auth-popup .close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.google-auth-popup .close-popup:hover {
    color: #1e293b;
    background: #f3f4f6;
}

.google-auth-popup h5 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.google-auth-popup p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #1e293b;
    text-decoration: none;
}

.google-btn:hover {
    background: #f9fafb;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

.google-btn svg {
    flex-shrink: 0;
}

#setup-container .card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s ease-in-out;
}

#setup-container .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.results-header {
    top: 60px;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.week-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.week-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0d6efd;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.week-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
}

.week-card ul {
    list-style: none;
    padding-left: 0;
}

.week-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    color: #495057;
}

.week-card ul li .bi {
    position: absolute;
    left: 0;
    top: 5px;
    color: #198754;
}

.footer {
    font-size: 0.9rem;
}

#notification-toast {
    z-index: 1100;
}

/* Materyal Kartları */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.material-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

.material-card .material-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.material-card .material-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.material-card .material-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.material-card.generated {
    border-color: #198754;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.material-card.not-generated {
    border-color: #6c757d;
    opacity: 0.7;
}

.material-card.loading {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #ffffff 0%, #e7f1ff 100%);
    pointer-events: none;
}

.material-card.loading .material-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.material-delete-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.material-regenerate-btn {
    position: absolute;
    top: 0.5rem;
    left: 3rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.material-card:hover .material-delete-btn,
.material-card:hover .material-regenerate-btn {
    opacity: 1;
}

body.edit-mode .material-card:hover .material-delete-btn,
body.edit-mode .material-card:hover .material-regenerate-btn {
    opacity: 1;
}

/* Hafta Kontrol Butonları */
.week-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.week-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.week-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.week-controls .btn i {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

/* Materyal Modal İçeriği */
.material-content {
    padding: 1.5rem;
}

.material-content h3 {
    color: #0d6efd;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.material-content .question-block {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.material-content .answer-options {
    margin-left: 1rem;
    margin-top: 0.75rem;
}

.material-content .answer-option {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.material-content .answer-option:hover {
    background: #e9ecef;
}

.material-content .correct-answer {
    background: #d1e7dd;
    border-left: 3px solid #198754;
    padding-left: 0.75rem;
}

/* Flashcard Stili */
.flashcard {
    perspective: 1000px;
    min-height: 200px;
    margin: 1rem 0;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    min-height: 200px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    min-height: 200px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: rotateY(180deg);
}

/* Sunum Stili - 16:9 */
.presentation-slide {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 1rem 0;
    min-height: 400px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentation-slide h2 {
    color: #0d6efd;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.presentation-slide.title-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.presentation-slide.title-slide h2 {
    color: white;
    font-size: 3rem;
}

/* Kavram Haritası */
.concept-map {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
}

.concept-map-canvas {
    width: 100%;
    height: 600px;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
}

.concept-node {
    background: #e7f1ff;
    border: 2px solid #0d6efd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem;
    display: inline-block;
    position: relative;
}

.concept-connection {
    border-left: 2px dashed #6c757d;
    margin-left: 2rem;
    padding-left: 1rem;
}

/* Eşleştirme Soruları */
.matching-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.matching-column {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.matching-column h4 {
    color: #0d6efd;
    margin-bottom: 1rem;
    text-align: center;
}

.matching-item {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    border-left: 4px solid #0d6efd;
    cursor: pointer;
    transition: all 0.3s;
}

.matching-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.matching-answers {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e7f1ff;
    border-radius: 0.5rem;
}

.matching-answers h4 {
    color: #198754;
    margin-bottom: 1rem;
}

.additional-material-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.additional-material-btn:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
    transform: translateX(4px);
}

.additional-material-btn i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.additional-material-btn .btn-content {
    flex: 1;
}

.additional-material-btn .btn-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.additional-material-btn .btn-desc {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Loading States */
.material-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.material-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.material-loading-text {
    font-size: 1.1rem;
    color: #0d6efd;
    font-weight: 500;
}

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progress Tracker */
#progress-container {
    max-width: 600px;
    margin: 0 auto;
}

#progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.progress-step.completed {
    background: #d1e7dd;
    border-left: 4px solid #198754;
}

.progress-step.active {
    background: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

.progress-step.pending {
    background: #f8f9fa;
    opacity: 0.6;
}

.progress-step-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.progress-step-text {
    flex: 1;
    font-weight: 500;
}

/* KaTeX Matematik Desteği */
.katex {
    font-size: 1.1em;
}

.katex-display {
    margin: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .week-controls {
        position: static;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .results-header .container {
        flex-direction: column;
    }
    
    .google-auth-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .matching-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .google-auth-popup {
        padding: 1.5rem;
    }
    
    .google-auth-popup h5 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .results-header,
    .footer,
    .week-controls,
    .material-card,
    .google-auth-popup {
        display: none !important;
    }
    
    .week-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ============================================
   MOODLE ENTEGRASYON STİLLERİ
   ============================================ */

/* Moodle Öğrenci Badge */
.moodle-student-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-left: 1rem;
    backdrop-filter: blur(10px);
}

/* Moodle Talimat Adımları */
.step-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h6 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.parameter-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.parameter-box:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* Analytics Dashboard Stilleri */
.analytics-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.5rem 0;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
}

/* Student Activity Log Stilleri */
.activity-log-item {
    padding: 0.75rem;
    border-left: 3px solid #667eea;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.2s ease;
}

.activity-log-item:hover {
    background: #e7f1ff;
    border-left-color: #764ba2;
    transform: translateX(4px);
}

.activity-timestamp {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.activity-material {
    font-weight: 600;
    color: #1e293b;
}

.activity-duration {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #667eea;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Material Stats Kartları */
.material-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.material-stat-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.material-views-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

/* Student Table Enhancements */
.student-table {
    border-collapse: separate;
    border-spacing: 0;
}

.student-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.student-table tbody tr {
    transition: all 0.2s ease;
}

.student-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Modal Enhancements */
.modal-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Copy Success Animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Loading Spinner Override */
.spinner-border-primary {
    border-color: #667eea;
    border-right-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .moodle-student-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .step-container {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* Dark Mode Support (Opsiyonel) */
@media (prefers-color-scheme: dark) {
    .analytics-card {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .stat-value {
        color: #f1f5f9;
    }
    
    .activity-log-item {
        background: #334155;
        border-left-color: #667eea;
    }
    
    .activity-log-item:hover {
        background: #475569;
    }
}

/* Print Styles */
@media print {
    .moodle-student-badge,
    .step-number,
    .btn,
    .modal,
    .navbar {
        display: none !important;
    }
    
    .analytics-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* ============================================
   ANALYTICS SAYFASI ÖZELLEŞTİRMELERİ
   ============================================ */

/* Gradient değişkenleri */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Analytics Header */
.analytics-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0;
    margin-top: 56px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    color: white;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0.5rem 0;
    text-align: center;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
}

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.chart-card h5 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container-tall {
    position: relative;
    height: 400px;
}

/* Student Rank Cards */
.student-rank-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.student-rank-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: #667eea;
}

/* Rank Badges */
.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.rank-1 { 
    background: linear-gradient(135deg, #ffd700, #ffed4e); 
    color: #000; 
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-2 { 
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8); 
    color: #000; 
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.rank-3 { 
    background: linear-gradient(135deg, #cd7f32, #e6a157); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.rank-other { 
    background: #e9ecef; 
    color: #6c757d; 
}

/* Engagement Badges */
.engagement-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.engagement-high { 
    background: #d1fae5; 
    color: #065f46; 
}

.engagement-medium { 
    background: #fef3c7; 
    color: #92400e; 
}

.engagement-low { 
    background: #fee2e2; 
    color: #991b1b; 
}

/* Activity Timeline */
.activity-timeline {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-timeline::-webkit-scrollbar {
    width: 6px;
}

.activity-timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.activity-timeline::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.activity-item {
    padding: 1rem;
    border-left: 3px solid #667eea;
    background: #f8f9fa;
    margin-bottom: 0.75rem;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #e7f1ff;
    border-left-color: #764ba2;
    transform: translateX(4px);
}

/* Material Progress Bar */
.material-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.material-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Modal Enhancements */
.modal-header.bg-primary {
    background: var(--primary-gradient) !important;
}

/* Table Enhancements */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.005);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .chart-container-tall {
        height: 300px;
    }
    
    .analytics-header {
        padding: 1.5rem 0;
    }
    
    .student-rank-card {
        margin-bottom: 0.5rem;
    }
    
    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
    
    .chart-card h5 {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .analytics-header,
    .navbar,
    .btn,
    .activity-timeline {
        display: none !important;
    }
    
    .chart-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.chart-card,
.student-rank-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading States */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.chart-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Badge Variations */
.badge-gradient-primary {
    background: var(--primary-gradient);
    color: white;
}

.badge-gradient-success {
    background: var(--success-gradient);
    color: white;
}

.badge-gradient-warning {
    background: var(--warning-gradient);
    color: white;
}

.badge-gradient-info {
    background: var(--info-gradient);
    color: white;
}

/* Accordion Stilleri */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
    margin-left: auto;
}

.week-accordion .accordion-item {
    margin-bottom: 1rem;
    border-radius: 0.75rem !important;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.week-accordion .accordion-header {
    margin-bottom: 0;
}

.week-accordion .accordion-button {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.week-accordion .accordion-body {
    padding: 1.5rem;
}

