* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #0b1329;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #1e293b;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #38bdf8;
}

nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-outline {
    color: #f8fafc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #334155;
    border-radius: 6px;
}

.btn-primary {
    background-color: #38bdf8;
    color: #0b1329;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: #0284c7;
}

.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.hero-content p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.module-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    background: #38bdf8;
    color: #0b1329;
    border-color: #38bdf8;
}

.module-box {
    background: #131d38;
    border: 1px solid #243054;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #1e293b;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #334155;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.6rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-tab-btn.active {
    color: #38bdf8;
    border-bottom: 2px solid #38bdf8;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.form-group input {
    width: 100%;
    padding: 0.65rem;
    background: #0b1329;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 6px;
}

.full-width {
    width: 100%;
    margin-top: 0.5rem;
}

.info-text {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}
.info-text.error { color: #f87171; }
.info-text.success { color: #4ade80; }

footer {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    border-top: 1px solid #1e293b;
}

/* Modül Ortak */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #243054;
}

/* Notlar */
.note-input-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.note-input-area textarea {
    width: 100%;
    min-height: 80px;
    background: #0b1329;
    border: 1px solid #243054;
    color: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    resize: vertical;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.note-card {
    background: #0b1329;
    border: 1px solid #243054;
    padding: 0.85rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.note-del-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Ezber Takip */
.progress-bar-bg {
    width: 150px;
    height: 8px;
    background: #0b1329;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #243054;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.progress-bar-fill {
    height: 100%;
    background: #38bdf8;
    transition: width 0.3s;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.juz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.4rem;
}

.ezber-btn {
    background: #0b1329;
    border: 1px solid #243054;
    color: #f8fafc;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ezber-btn.status-1 {
    background: #854d0e;
    border-color: #ca8a04;
}

.ezber-btn.status-2 {
    background: #14532d;
    border-color: #16a34a;
}
/* Cüz Kartları Izgarası */
.juz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.6rem;
}

.juz-card {
    background: #0b1329;
    border: 1px solid #243054;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.juz-card:hover {
    border-color: #38bdf8;
    background: #111b38;
}

.juz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.juz-title { font-weight: 600; color: #f8fafc; }
.juz-pages { color: #38bdf8; font-size: 0.75rem; }

.mini-bar-bg {
    width: 100%;
    height: 5px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    transition: width 0.3s;
}

/* Sure Rozetleri (30. Cüz) */
.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 0.4rem;
}

.surah-badge {
    background: #0b1329;
    border: 1px solid #243054;
    color: #f8fafc;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.surah-no { font-size: 0.65rem; color: #64748b; }
.surah-badge.status-1 { background: #854d0e; border-color: #ca8a04; }
.surah-badge.status-2 { background: #14532d; border-color: #16a34a; }

/* Sayfa Seçim Modalı */
.juz-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.juz-modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.page-buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.page-select-btn {
    background: #0b1329;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.page-select-btn:hover, .page-select-btn.active {
    background: #38bdf8;
    color: #0b1329;
    font-weight: bold;
    border-color: #38bdf8;
}
/* Takvim Üst Bar ve Seçiciler */
.cal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cal-selectors {
    display: flex;
    gap: 0.4rem;
}

.cal-select {
    background: #0b1329;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.cal-select:focus {
    border-color: #38bdf8;
    outline: none;
}

/* Takvim Grid Yapısı */
.calendar-grid-wrapper {
    background: #0b1329;
    border: 1px solid #243054;
    border-radius: 10px;
    padding: 0.8rem;
    margin-top: 0.8rem;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.cal-day {
    background: #111b38;
    border: 1px solid #1e293b;
    border-radius: 6px;
    min-height: 45px;
    padding: 0.3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    transition: all 0.2s;
    position: relative;
}

.cal-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.cal-day:hover:not(.empty) {
    border-color: #38bdf8;
    background: #18254c;
}

.cal-day.has-note {
    border-color: #0284c7;
    background: #0f2147;
}

.day-number {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.note-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    align-self: center;
    margin-bottom: 4px;
    box-shadow: 0 0 6px #38bdf8;
}

/* Günlük Not Modal ve Zengin Metin Editörü */
.cal-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.cal-modal-box {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 1.2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.cal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #f8fafc;
}

.cal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.cal-close-btn:hover { color: #f8fafc; }

.cal-toolbar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #0b1329;
    padding: 0.4rem;
    border-radius: 6px 6px 0 0;
    border: 1px solid #334155;
    border-bottom: none;
}

.cal-toolbar button {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.cal-toolbar button:hover {
    background: #38bdf8;
    color: #0b1329;
}

.color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50% !important;
    padding: 0 !important;
}

.toolbar-sep { color: #475569; margin: 0 0.2rem; }

.cal-editor {
    background: #0b1329;
    border: 1px solid #334155;
    border-radius: 0 0 6px 6px;
    min-height: 140px;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.8rem;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
}

.cal-editor:focus {
    border-color: #38bdf8;
}

.cal-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.cal-top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.cal-title-area { display: flex; align-items: center; gap: 1rem; }
.theme-trigger-btn { font-size: 0.8rem; background: #1e293b; border: 1px solid #334155; padding: 0.3rem 0.6rem; border-radius: 6px; cursor: pointer; color: #38bdf8; transition: 0.2s; }
.theme-trigger-btn:hover { background: #38bdf8; color: #0b1329; }

.cal-controls { display: flex; align-items: center; gap: 0.4rem; }
.nav-arrow-btn { background: #1e293b; border: 1px solid #334155; color: #f8fafc; padding: 0.3rem 0.7rem; border-radius: 6px; cursor: pointer; font-weight: bold; }
.nav-arrow-btn:hover { border-color: #38bdf8; background: #243054; }

.cal-selectors { display: flex; gap: 0.4rem; }
.cal-select { background: #0b1329; border: 1px solid #334155; color: #f8fafc; padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; }

.calendar-grid-wrapper { background: #0b1329; border: 1px solid #243054; border-radius: 10px; padding: 0.8rem; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; font-size: 0.8rem; margin-bottom: 0.5rem; }
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }

.cal-day { border: 1px solid #1e293b; border-radius: 6px; min-height: 48px; padding: 0.3rem; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; position: relative; transition: 0.2s; }
.cal-day.empty { background: transparent !important; border: none; cursor: default; }
.cal-day:hover:not(.empty) { border-color: #38bdf8; filter: brightness(1.2); }

/* Renkli Not Noktaları */
.note-dot { width: 7px; height: 7px; border-radius: 50%; align-self: center; margin-bottom: 4px; }
.dot-blue { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.dot-pink { background: #ec4899; box-shadow: 0 0 6px #ec4899; }
.dot-green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-yellow { background: #facc15; box-shadow: 0 0 6px #facc15; }

.has-note-blue { border-color: #0284c7 !important; }
.has-note-pink { border-color: #db2777 !important; }
.has-note-green { border-color: #16a34a !important; }
.has-note-yellow { border-color: #ca8a04 !important; }

/* Modâl ve Araçlar */
.cal-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 3000; }
.cal-modal-box { background: #1e293b; border: 1px solid #334155; padding: 1.2rem; border-radius: 12px; width: 100%; max-width: 440px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.cal-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; color: #f8fafc; }
.cal-close-btn { background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }

.cal-toolbar { display: flex; justify-content: space-between; align-items: center; background: #0b1329; padding: 0.4rem; border-radius: 6px 6px 0 0; border: 1px solid #334155; border-bottom: none; flex-wrap: wrap; gap: 0.4rem; }
.color-tag-selector { display: flex; align-items: center; gap: 4px; }
.color-pick-btn { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.color-pick-btn.active-color { border-color: #fff; transform: scale(1.15); }
.text-format-tools button { background: #1e293b; border: 1px solid #334155; color: #f8fafc; padding: 0.2rem 0.5rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }

.cal-editor { background: #0b1329; border: 1px solid #334155; border-radius: 0 0 6px 6px; min-height: 130px; max-height: 220px; overflow-y: auto; padding: 0.8rem; color: #f8fafc; font-size: 0.9rem; outline: none; }
.cal-modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }

.theme-form-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; color: #cbd5e1; font-size: 0.9rem; }
.theme-form-group input[type="color"] { background: none; border: none; width: 35px; height: 30px; cursor: pointer; }

.cal-top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.8rem; }
.cal-title-area { display: flex; align-items: center; gap: 1rem; }
.theme-trigger-btn { font-size: 0.85rem; background: #1e293b; border: 1px solid #334155; padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; color: #38bdf8; transition: 0.2s; }
.theme-trigger-btn:hover { background: #38bdf8; color: #0b1329; }

.cal-controls-group { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.cal-selectors { display: flex; gap: 0.4rem; }
.cal-select { background: #0b1329; border: 1px solid #334155; color: #f8fafc; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }

.cal-nav-buttons { display: flex; gap: 0.3rem; }
.nav-arrow-btn { background: #1e293b; border: 1px solid #334155; color: #f8fafc; padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 0.9rem; transition: 0.2s; }
.nav-arrow-btn:hover { border-color: #38bdf8; background: #243054; }

.calendar-grid-wrapper { background: #0b1329; border: 2px solid #243054; border-radius: 12px; padding: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; font-size: 0.85rem; margin-bottom: 0.6rem; }
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }

.cal-day { border: 1px solid #1e293b; border-radius: 8px; min-height: 65px; padding: 0.4rem; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; position: relative; transition: all 0.2s ease; }
.cal-day.empty { background: transparent !important; border: none; cursor: default; }
.cal-day:hover:not(.empty) { border-color: #38bdf8; transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2); }

.day-number { font-size: 0.85rem; font-weight: 600; color: #f8fafc; }

/* Renkli Not Noktaları */
.note-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; margin-bottom: 6px; }
.dot-blue { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.dot-pink { background: #ec4899; box-shadow: 0 0 8px #ec4899; }
.dot-green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dot-yellow { background: #facc15; box-shadow: 0 0 8px #facc15; }

.has-note-blue { border-color: #0284c7 !important; }
.has-note-pink { border-color: #db2777 !important; }
.has-note-green { border-color: #16a34a !important; }
.has-note-yellow { border-color: #ca8a04 !important; }

/* Modâl ve Araçlar */
.cal-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 3000; }
.cal-modal-box { background: #1e293b; border: 1px solid #334155; padding: 1.5rem; border-radius: 14px; width: 100%; max-width: 480px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.cal-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; color: #f8fafc; }
.cal-close-btn { background: none; border: none; color: #94a3b8; font-size: 1.6rem; cursor: pointer; }

.cal-toolbar { display: flex; justify-content: space-between; align-items: center; background: #0b1329; padding: 0.5rem 0.8rem; border-radius: 8px 8px 0 0; border: 1px solid #334155; border-bottom: none; flex-wrap: wrap; gap: 0.5rem; }
.color-tag-selector { display: flex; align-items: center; gap: 6px; }
.color-pick-btn { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: 0.2s; }
.color-pick-btn.active-color { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.text-format-tools button { background: #1e293b; border: 1px solid #334155; color: #f8fafc; padding: 0.3rem 0.6rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.text-format-tools button:hover { background: #38bdf8; color: #0b1329; }

.cal-editor { background: #0b1329; border: 1px solid #334155; border-radius: 0 0 8px 8px; min-height: 150px; max-height: 250px; overflow-y: auto; padding: 1rem; color: #f8fafc; font-size: 0.95rem; outline: none; }
.cal-editor:focus { border-color: #38bdf8; }

.cal-modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; }
.theme-form-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; color: #cbd5e1; font-size: 0.95rem; }
.theme-form-group input[type="color"] { background: none; border: none; width: 40px; height: 32px; cursor: pointer; border-radius: 4px; }
