/* Root Variables - Light Theme */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --border: #E5E7EB;
    --matematik: #8B5CF6;
    --geometri: #EC4899;
    
    /* Theme Colors */
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --card-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.95);
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --card-bg: #1E293B;
    --header-bg: rgba(15, 23, 42, 0.95);
    --border: #334155;
    --light: #1E293B;
    --gradient-start: #4338CA;
    --gradient-end: #7C3AED;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body ve HTML düzeltmeleri */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 300;
}

/* İstatistik Paneli */
.stats-section {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.countdown-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.countdown-card h3 {
    color: rgba(255, 255, 255, 0.9);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.countdown-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Progress Ring */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circle {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* Progress Bar */
.progress-bar-container {
    margin: 15px 0;
}

.progress-bar {
    height: 12px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.matematik-fill {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.geometri-fill {
    background: linear-gradient(90deg, #EC4899, #F472B6);
}

.progress-percentage {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Ana İçerik */
.main-content {
    padding: 40px 0 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Konu Kartları */
.konu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.konu-header {
    padding: 25px 30px;
    color: white;
}

.matematik-header {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.geometri-header {
    background: linear-gradient(135deg, #EC4899, #F472B6);
}

.konu-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.konu-list {
    padding: 20px;
}

/* Konu Item */
.konu-item {
    margin-bottom: 8px;
}

.konu-ana {
    padding: 15px 20px;
    background: #F9FAFB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.konu-ana:hover {
    background: #F3F4F6;
    transform: translateX(5px);
}

.konu-ana.tamamlandi {
    background: #D1FAE5;
    border-left: 4px solid var(--success);
}

.konu-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.konu-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--success);
}

.konu-text {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark);
}

.konu-ana.tamamlandi .konu-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.konu-ana.active .toggle-icon {
    transform: rotate(180deg);
}

/* Alt Konular */
.alt-konular {
    display: none;
    padding-left: 40px;
    margin-top: 8px;
}

.alt-konular.show {
    display: block;
}

.alt-konu {
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.alt-konu:hover {
    background: #F9FAFB;
    border-left-color: var(--primary);
}

.alt-konu.tamamlandi {
    background: #ECFDF5;
    border-left-color: var(--success);
}

.alt-konu.tamamlandi .konu-text {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Sidebar */
.sidebar-section {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Hedef Input */
.hedef-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hedef-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.hedef-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-add {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Hedef List */
.hedef-list {
    max-height: 300px;
    overflow-y: auto;
}

.hedef-item {
    padding: 12px 15px;
    background: #F9FAFB;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
}

.hedef-item:hover {
    background: #F3F4F6;
}

.hedef-item.tamamlandi {
    background: #D1FAE5;
    opacity: 0.7;
}

.hedef-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.hedef-item.tamamlandi .hedef-text {
    text-decoration: line-through;
}

.hedef-text {
    font-size: 0.95rem;
    color: var(--dark);
}

.btn-delete {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #DC2626;
    transform: scale(1.05);
}

/* Motivasyon */
.motivasyon-input-group {
    margin-bottom: 20px;
}

.motivasyon-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.motivasyon-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.motivasyon-list {
    max-height: 250px;
    overflow-y: auto;
}

.motivasyon-item {
    padding: 12px 15px;
    background: #FEF3C7;
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.motivasyon-date {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 5px;
}

.motivasyon-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.motivasyon-quote {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    font-weight: 300;
}

/* Loading */
.loading, .loading-small {
    text-align: center;
    padding: 20px;
    color: var(--gray);
}

.loading-small {
    padding: 10px;
    font-size: 0.9rem;
}

/* Streak ve Check-in Bölümü */
.streak-section {
    padding: 40px 0;
}

.streak-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
}

/* Check-in Card */
.checkin-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.checkin-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.checkin-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.checkin-input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.checkin-input-number {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.checkin-input-number:focus {
    outline: none;
    border-color: var(--primary);
}

.checkin-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.checkin-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-checkin {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-checkin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-checkin:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.btn-checkin.completed {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Streak Stats Card */
.streak-stats-card {
    background: linear-gradient(135deg, #F97316, #EA580C);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.streak-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.streak-fire {
    font-size: 4rem;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

.streak-info h3 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.streak-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.streak-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.streak-details {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.streak-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.detail-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Smart Goals Card */
.smart-goals-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.smart-goals-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.smart-goal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.smart-goal-item:hover {
    background: #F3F4F6;
    transform: translateX(5px);
}

.goal-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.goal-content {
    flex: 1;
}

.goal-title {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.goal-progress {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Badges Section */
.badges-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.badge-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.badge-card.earned {
    border: 3px solid var(--success);
}

.badge-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.badge-card.locked .badge-icon {
    filter: grayscale(100%) opacity(50%);
}

.badge-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.badge-description {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.badge-earned-date {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 10px;
    font-weight: 500;
}

.badge-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--success);
    color: white;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive - Streak Section */
@media (max-width: 1024px) {
    .streak-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkin-input-row {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .streak-fire {
        font-size: 3rem;
    }
    
    .streak-number {
        font-size: 2.5rem;
    }
}

/* Bootstrap Icons CDN - Head'e eklenecek */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* DGS Exam Countdown */
.exam-countdown-section {
    padding: 40px 0;
}

.exam-countdown-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.countdown-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.countdown-title i {
    font-size: 1.8rem;
    color: var(--primary);
}

.exam-date-info {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.exam-date-info i {
    font-size: 1.2rem;
}

.exam-countdown-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.countdown-box {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.countdown-label i {
    font-size: 1.1rem;
}

.exam-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.exam-info-item {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.exam-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.exam-info-item i {
    font-size: 2rem;
    color: var(--primary);
}

.info-content {
    text-align: left;
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exam-note {
    background: var(--bg-primary);
    border-left: 4px solid var(--warning);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.exam-note i {
    font-size: 1.3rem;
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 2px;
}

.exam-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.exam-note a:hover {
    text-decoration: underline;
}

/* Dark mode countdown boxes */
[data-theme="dark"] .countdown-box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .countdown-box:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive - Exam Countdown */
@media (max-width: 768px) {
    .exam-countdown-container {
        padding: 30px 20px;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .exam-date-info {
        font-size: 1rem;
    }
    
    .exam-countdown-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .countdown-box {
        padding: 25px 15px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .exam-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .exam-info-item {
        padding: 15px 12px;
    }
    
    .exam-info-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .exam-countdown-container {
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    .countdown-title {
        font-size: 1.3rem;
    }
    
    .countdown-title i {
        font-size: 1.4rem;
    }
    
    .exam-date-info {
        font-size: 0.95rem;
        flex-direction: column;
    }
    
    .exam-countdown-display {
        gap: 12px;
        margin: 25px 0;
    }
    
    .countdown-box {
        padding: 20px 12px;
        border-radius: 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.85rem;
    }
    
    .exam-info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .info-content {
        text-align: center;
    }
    
    .exam-note {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Pomodoro Timer */
.pomodoro-section {
    padding: 30px 0;
}

.pomodoro-container {
    max-width: 500px;
    margin: 0 auto;
}

.pomodoro-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.pomodoro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pomodoro-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.theme-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pomodoro-display {
    margin: 40px 0;
}

.timer-circle {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 12;
}

.timer-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pomodoro-controls {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.btn-timer {
    flex: 1;
    max-width: 140px;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-start {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-pause {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.btn-pause:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-reset {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-reset:hover {
    background: var(--border);
}

.btn-timer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pomodoro-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-item label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.setting-item select {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--primary);
}

.pomodoro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Card backgrounds - Dark mode fix */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .konu-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .checkin-card,
[data-theme="dark"] .smart-goals-card,
[data-theme="dark"] .pomodoro-card {
    background: var(--card-bg);
}

[data-theme="dark"] .konu-ana,
[data-theme="dark"] .alt-konu {
    background: var(--bg-primary);
}

[data-theme="dark"] .konu-ana:hover,
[data-theme="dark"] .alt-konu:hover {
    background: var(--border);
}

/* Header dark mode */
[data-theme="dark"] .header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .footer {
    background: var(--header-bg);
}

/* Input dark mode */
[data-theme="dark"] .hedef-input,
[data-theme="dark"] .motivasyon-input,
[data-theme="dark"] .checkin-input-number,
[data-theme="dark"] .checkin-textarea {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border);
}

/* iPhone Optimizasyonu */
@media (max-width: 430px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    /* Pomodoro Timer - Mobile */
    .pomodoro-card {
        padding: 25px 20px;
        border-radius: 25px;
    }
    
    .pomodoro-header h3 {
        font-size: 1.4rem;
    }
    
    .timer-circle {
        width: 220px;
        height: 220px;
    }
    
    .timer-time {
        font-size: 3rem;
    }
    
    .timer-label {
        font-size: 0.95rem;
    }
    
    .pomodoro-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-timer {
        max-width: 100%;
        padding: 14px 18px;
    }
    
    .pomodoro-settings {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-item .stat-value {
        font-size: 2rem;
    }
    
    /* Check-in - Mobile */
    .checkin-input-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .checkin-card {
        padding: 20px;
    }
    
    /* Streak - Mobile */
    .streak-container {
        gap: 20px;
    }
    
    .streak-fire {
        font-size: 2.5rem;
    }
    
    .streak-number {
        font-size: 2rem;
    }
    
    /* Stats - Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Konu kartları - Mobile */
    .konu-ana {
        padding: 12px 15px;
    }
    
    .alt-konu {
        padding: 10px 12px;
    }
    
    .konu-text {
        font-size: 0.9rem;
    }
    
    /* Badges - Mobile */
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .badge-icon {
        font-size: 3rem;
    }
    
    .badge-name {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* iPhone 14 Pro Max (430px) */
@media (max-width: 430px) and (min-width: 391px) {
    .container {
        padding: 0 18px;
    }
    
    .timer-circle {
        width: 240px;
        height: 240px;
    }
}

/* iPhone 14 Pro (393px) */
@media (max-width: 390px) {
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
}

/* Safe Area için padding (iPhone X ve sonrası) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .header,
    .footer {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    text-align: center;
    color: var(--gray);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section {
        position: relative;
        top: 0;
    }
    
    .streak-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .konu-header h2 {
        font-size: 1.2rem;
    }
    
    /* Check-in responsive */
    .checkin-input-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Badges responsive */
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* iPhone ve Küçük Ekranlar */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    /* Stats kartları */
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Pomodoro */
    .pomodoro-section {
        padding: 20px 0;
    }
    
    .pomodoro-card {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .pomodoro-header h3 {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .timer-label {
        font-size: 0.9rem;
    }
    
    .pomodoro-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-timer {
        max-width: 100%;
        width: 100%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .pomodoro-settings {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }
    
    .pomodoro-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item .stat-value {
        font-size: 2rem;
    }
    
    /* Streak */
    .streak-section {
        padding: 20px 0;
    }
    
    .streak-stats-card {
        padding: 20px;
    }
    
    .streak-fire {
        font-size: 2.5rem;
    }
    
    .streak-number {
        font-size: 2rem;
    }
    
    .streak-info h3 {
        font-size: 0.9rem;
    }
    
    .streak-label {
        font-size: 0.8rem;
    }
    
    /* Check-in */
    .checkin-card {
        padding: 20px 15px;
    }
    
    .checkin-card h3 {
        font-size: 1.3rem;
    }
    
    .checkin-subtitle {
        font-size: 0.85rem;
    }
    
    .input-group label {
        font-size: 0.8rem;
    }
    
    .checkin-input-number {
        padding: 10px;
        font-size: 1.1rem;
    }
    
    .checkin-textarea {
        padding: 12px;
        font-size: 0.9rem;
        min-height: 70px;
    }
    
    .btn-checkin {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Smart Goals */
    .smart-goals-card {
        padding: 20px 15px;
    }
    
    .smart-goals-card h3 {
        font-size: 1.2rem;
    }
    
    .smart-goal-item {
        padding: 12px;
        gap: 12px;
    }
    
    .goal-icon {
        font-size: 1.8rem;
    }
    
    .goal-title {
        font-size: 0.85rem;
    }
    
    .goal-progress {
        font-size: 1rem;
    }
    
    /* Rozetler */
    .badges-section {
        padding: 20px 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .badge-card {
        padding: 15px;
    }
    
    .badge-icon {
        font-size: 3rem;
    }
    
    .badge-name {
        font-size: 0.95rem;
    }
    
    .badge-description {
        font-size: 0.8rem;
    }
    
    /* Konular */
    .main-content {
        padding: 20px 0 40px;
    }
    
    .konu-card {
        margin-bottom: 20px;
    }
    
    .konu-header {
        padding: 20px;
    }
    
    .konu-header h2 {
        font-size: 1.1rem;
    }
    
    .konu-list {
        padding: 15px;
    }
    
    .konu-ana {
        padding: 12px 15px;
    }
    
    .alt-konular {
        padding-left: 20px;
    }
    
    .alt-konu {
        padding: 10px 12px;
    }
    
    .konu-text {
        font-size: 0.9rem;
    }
    
    .konu-checkbox {
        width: 20px;
        height: 20px;
    }
    
    /* Sidebar */
    .sidebar-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .sidebar-header h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .hedef-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .btn-add {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .hedef-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .motivasyon-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .motivasyon-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .motivasyon-quote {
        font-size: 1rem;
        padding: 15px;
    }
}

/* iPhone Specific */
@media (max-width: 430px) and (min-width: 391px) {
    .timer-circle {
        width: 220px;
        height: 220px;
    }
    
    .timer-time {
        font-size: 2.8rem;
    }
}

@media (max-width: 390px) {
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    .timer-time {
        font-size: 2.2rem;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
}

/* Safe Area - iPhone X ve sonrası */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .header,
    .footer {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Fix overflow issues */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Grid container max width fix */
.stats-grid,
.streak-container,
.content-grid,
.badges-grid,
.pomodoro-stats,
.pomodoro-settings {
    width: 100%;
    max-width: 100%;
}