/* ================================
   DASHBOARD STYLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #154B5F;
    --primary-dark: #2d9688;
    --text-dark: #154B5F;
    --text-light: #7A736C;
    --background: #F8F7F6;
    --white: #FDFCFC;
    --border: #E5E0DC;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--background);
    color: var(--text-dark);
    zoom: 0.9;
}

/* ================================
   LAYOUT
   ================================ */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
}

/* ================================
   SIDEBAR
   ================================ */

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100svh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 15px 20px;
    height: 72px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
}

.sidebar-logo span {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(21, 75, 95, 0.1);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(21, 75, 95, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 15px;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 20px;
}

.nav-item.logout {
    color: var(--danger);
}

.nav-item.logout:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* ================================
   MAIN CONTENT
   ================================ */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
}

/* ================================
   TOPBAR
   ================================ */

.topbar {
    background: white;
    padding: 20px 30px;
    height: 72px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
    box-sizing: border-box;
}

.page-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    color: var(--text-dark);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector-dashboard {
    position: relative;
}

.lang-btn-dashboard {
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn-dashboard:hover {
    border-color: var(--primary-color);
}

.flag-img-dashboard {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: var(--background);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #e8e6e4;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-avatar-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

/* ================================
   CHILD SELECTOR
   ================================ */

.child-selector-container {
    padding: 15px 30px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.child-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.child-selector label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.child-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.child-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-add-child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-child:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 75, 95, 0.3);
}

.btn-add-child .icon {
    font-size: 18px;
}

/* ================================
   DASHBOARD GRID
   ================================ */

.dashboard-grid {
    padding: 30px;
    display: grid;
    /* Sol (modüller + son aktiviteler) %60, sağ (raporlar + rozetler) %40 — patron 10 Eki.
       minmax(0, …): içerik (eskiden 6'lı rozet satırı) sütunu genişletemez. */
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 25px;
}

/* Welcome Card - Tam Genişlik */
.welcome-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(21, 75, 95, 0.9) 0%, rgba(93, 173, 226, 0.6) 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(21, 75, 95, 0.3);
    overflow: hidden;
    position: relative;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-content h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.welcome-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.welcome-card .stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white !important;
}

.welcome-card .stat-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 5px;
    color: white !important;
}

.welcome-illustration {
    position: absolute;
    right: -80px;
    bottom: -120px;
    pointer-events: none;
    z-index: 0;
}

.welcome-illustration img {
    width: 600px;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
}

/* ================================
   CARDS
   ================================ */

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    color: var(--text-dark);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--primary-dark);
}

.card-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.card-content {
    /* Genel içerik stili */
}

/* Modül Listesi - Dikey Scroll */
.module-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border);
}

.module-list::-webkit-scrollbar {
    width: 6px;
}

.module-list::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 3px;
}

.module-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--background);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.module-item:hover {
    background: #e8e6e4;
}

/* Modülden dönüşte az önce çıkılan kart (24 Eyl 2026, dashboard.js). */
.module-item.module-item-donus {
    box-shadow: 0 0 0 3px #2d9688;
    background: #EAF7F5;
}

/* Kilitli modül */
.module-item.locked {
    opacity: 0.52;
    filter: grayscale(75%);
    cursor: not-allowed;
}

.module-item.locked:hover {
    background: var(--background);
}

.module-item.locked::after {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(21, 75, 95, 0.93);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 0 0 10px 10px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.module-item.locked:hover::after {
    display: block;
}

.module-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.module-info {
    flex: 1;
}

.module-info h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.module-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    min-width: 40px;
}

.btn-module {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-module:hover {
    background: var(--primary-dark);
}

/* Rapor Kartı */
.report-section {
    margin-bottom: 25px;
}

.report-section h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.report-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
}

.stat-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.chart-placeholder {
    margin-top: 20px;
    padding: 20px;
    background: var(--background);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aktivite Kartı */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--background);
    border-radius: 10px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

.activity-icon.completed {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.activity-icon.in-progress {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-light);
}

.activity-score {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ================================
   MODAL
   ================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscription-warning {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning);
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 24px;
}

.subscription-warning strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.subscription-warning p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: var(--background);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Star Rating Inline */
.star-rating-inline {
    display: flex;
    gap: 8px;
}

.star-rating-inline .star {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.star-rating-inline .star:hover {
    opacity: 0.7;
}

/* ================================
   RESPONSIVE
   ================================ */

/* 1200 → 1024 (patron 10 Eki): yatay tabletler (~1080-1180 px) iki sütun görsün, profil sayfasıyla aynı eşik. */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-logo span,
    .nav-text {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }

    .topbar {
        padding: 15px 20px;
    }

    .child-selector-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
    }

    .welcome-stats {
        justify-content: center;
    }

    .welcome-illustration {
        display: none;
    }
}

/* ================================
   BADGES SECTION
   ================================ */

/* Badges card - activity card ile aynı satırda */
.badges-card {
    /* grid-column otomatik, activity-card ile yan yana */
}

.badges-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-progress {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.badges-grid {
    display: grid;
    /* Sabit 6'lı satır dar sütunu taşırıyordu → sığdığı kadar yan yana, kalanı alt satıra. */
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.badge-item:hover {
    transform: translateY(-3px);
}

.badge-item.earned {
    background: rgba(21, 75, 95, 0.1);
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.badge-item.locked:hover {
    opacity: 0.7;
    filter: grayscale(50%);
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.badge-name {
    font-size: 10px;
    overflow-wrap: anywhere;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.2;
}

.badge-item.new::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
}

/* Badge Tooltip */
.badge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 200px;
    white-space: normal;
    text-align: center;
}

.badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
}

.badge-item:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Rarity Colors */
.badge-item[data-rarity="common"] .badge-icon {
    border: 3px solid #9e9e9e;
}

.badge-item[data-rarity="uncommon"] .badge-icon {
    border: 3px solid #4CAF50;
}

.badge-item[data-rarity="rare"] .badge-icon {
    border: 3px solid #2196F3;
}

.badge-item[data-rarity="epic"] .badge-icon {
    border: 3px solid #9C27B0;
}

.badge-item[data-rarity="legendary"] .badge-icon {
    border: 3px solid #FF9800;
}

.badge-item[data-rarity="special"] .badge-icon {
    border: 3px solid #E91E63;
}

/* ================================
   BADGE POPUP
   ================================ */

.badge-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.badge-popup-overlay.active {
    display: flex;
}

.badge-popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    animation: popupBounce 0.5s ease;
    position: relative;
    z-index: 2001;
}

@keyframes popupBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-popup-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.badge-popup-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

.badge-popup-body h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.badge-popup-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.badge-popup-close {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-popup-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2002;
}

/* ================================
   CHILD LIMIT BANNER
   ================================ */

.child-limit-banner {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 1px solid #FFB74D;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 24px;
}

.banner-text {
    flex: 1;
    color: #E65100;
    font-weight: 500;
    min-width: 200px;
}

.banner-btn {
    background: #FF9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

/* Uygulama olarak kur şeridi (PWA 3b, 10 Eki 2026) — uyarı değil öneri: sakin renk */
.install-banner {
    background: linear-gradient(135deg, #E6F2F6 0%, #D3E8EF 100%);
    border: 1px solid #8DBFCF;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.install-banner .banner-text {
    color: #154B5F;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.install-banner .banner-btn {
    background: #154B5F;
}

.install-banner .banner-btn:hover {
    background: #0d3544;
}

/* Kurulum bitti onayı (10 Eki 2026, patron: "yüklendi mi yüklenmedi mi belirti yok") */
.install-banner.install-banner--ok {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #81C784;
}

.install-banner.install-banner--ok .banner-text {
    color: #1B5E20;
}

.install-banner.install-banner--ok .banner-btn {
    background: #2E7D32;
}

.install-banner-dismiss {
    background: none;
    border: none;
    color: #154B5F;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px 8px;
}

/* ================================
   CHILD ACTIVATION MODAL
   ================================ */

.activation-info {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.children-activation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.child-activation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--background);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.child-activation-item:hover {
    border-color: var(--primary-color);
}

.child-activation-item.active {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.child-activation-item.inactive {
    background: #FAFAFA;
    border-color: #E0E0E0;
    opacity: 0.7;
}

.child-activation-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.child-activation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.child-activation-name {
    font-weight: 600;
    color: var(--text-dark);
}

.child-activation-age {
    font-size: 13px;
    color: var(--text-light);
}

.child-activation-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    min-width: 50px;
}

.toggle-label.active {
    color: #4CAF50;
}

.toggle-label.inactive {
    color: var(--text-light);
}

.activation-note {
    margin-top: 16px;
    padding: 12px;
    background: #E3F2FD;
    border-radius: 8px;
    font-size: 13px;
    color: #1565C0;
}

/* Pasif çocuk dropdown gösterimi */
.child-select option.inactive-child {
    color: #9E9E9E;
    font-style: italic;
}

.child-select option.inactive-child::after {
    content: " (Pasif)";
}

/* ================================
   SCREENING RESULT CARD
   ================================ */

.screening-result-card {
    grid-column: 1 / -1;
}

/* Loading dots */
.screening-card-loading {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 16px 0;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    animation: dot-pulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

/* No result */
.screening-no-result {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.btn-screening-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-screening-cta:hover { opacity: 0.85; }

/* Result block */
.screening-card-result {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.screening-card-top {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    flex-wrap: wrap;
}

.screening-card-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.screening-card-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f9fb;
    border: 2px solid #d0e8f0;
    border-radius: 14px;
    padding: 14px 28px;
    min-width: 110px;
}

.screening-card-result.risk-low .screening-card-score    { background: #f0faf4; border-color: #a8ddb8; }
.screening-card-result.risk-medium .screening-card-score { background: #fffbf0; border-color: #f0d080; }
.screening-card-result.risk-high .screening-card-score   { background: #fff5f5; border-color: #f0a8a8; }

.sc-percent {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.screening-card-result.risk-low .sc-percent    { color: #2a8a4a; }
.screening-card-result.risk-medium .sc-percent { color: #b07800; }
.screening-card-result.risk-high .sc-percent   { color: #c03030; }

.sc-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 4px;
}

.screening-card-result.risk-low .sc-category    { color: #2a8a4a; }
.screening-card-result.risk-medium .sc-category { color: #b07800; }
.screening-card-result.risk-high .sc-category   { color: #c03030; }

.screening-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.screening-card-meta strong {
    color: var(--text-dark);
}

/* ================================
   SCREENING MODAL
   ================================ */

.screening-modal-content {
    max-width: 480px;
}

.screening-modal-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f9fb;
    border: 2px solid #d0e8f0;
    border-radius: 16px;
    padding: 24px 32px;
    margin: 0 auto 20px;
    width: fit-content;
}

.screening-modal-score-box.risk-low    { background: #f0faf4; border-color: #a8ddb8; }
.screening-modal-score-box.risk-medium { background: #fffbf0; border-color: #f0d080; }
.screening-modal-score-box.risk-high   { background: #fff5f5; border-color: #f0a8a8; }

.screening-modal-percent {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.screening-modal-score-box.risk-low .screening-modal-percent    { color: #2a8a4a; }
.screening-modal-score-box.risk-medium .screening-modal-percent { color: #b07800; }
.screening-modal-score-box.risk-high .screening-modal-percent   { color: #c03030; }

.screening-modal-category {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 6px;
}

.screening-modal-score-box.risk-low .screening-modal-category    { color: #2a8a4a; }
.screening-modal-score-box.risk-medium .screening-modal-category { color: #b07800; }
.screening-modal-score-box.risk-high .screening-modal-category   { color: #c03030; }

.screening-modal-info {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 14px;
}

.screening-modal-warning {
    font-size: 13px;
    color: #8a4000;
    background: #fff8f0;
    border-left: 4px solid #f0a860;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin-bottom: 16px;
    line-height: 1.55;
}

.screening-modal-warning strong {
    text-decoration: underline;
}

/* Screening modal detail toggle */
.btn-screening-detail-toggle {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: 1.5px solid #c8dde6;
    color: #154B5F;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-screening-detail-toggle:hover {
    background: #edf4f7;
    border-color: #154B5F;
}

.screening-modal-detail {
    margin-top: 16px;
    padding: 16px;
    background: #f4f9fb;
    border-radius: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.screening-modal-detail-text {
    font-size: 13px;
    color: #2c5f72;
    line-height: 1.7;
    text-align: left;
}

/* Screening card hide/show toggle */
.screening-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}

.screening-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ================================
   NOTIFICATION BELL
   ================================ */

.notification-bell {
    position: relative;
}

.bell-btn {
    background: white;
    border: 1.5px solid #154B5F;
    color: #154B5F;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 11px;
    border-radius: 99px;
    position: relative;
    transition: all 0.18s ease;
    line-height: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bell-btn:hover {
    background: #edf4f7;
}

.bell-btn.has-unread {
    background: #154B5F;
    color: white;
}

.bell-btn.has-unread:hover {
    background: #1a5c73;
}

.bell-badge {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(21,75,95,0.12);
    z-index: 200;
    overflow: hidden;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.notif-mark-all {
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.notif-mark-all:hover { opacity: 1; }

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

.notif-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0ebe6;
    cursor: pointer;
    transition: background 0.15s;
}

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

.notif-item:hover { background: #f8f7f6; }

.notif-item.unread {
    background: #f0f8fb;
    border-left: 3px solid var(--primary-color);
}

.notif-item.unread:hover { background: #e6f3f8; }

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notif-body {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}

.notif-time {
    font-size: 11px;
    color: #b0a8a0;
}
