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;
    }
}