/* ============================================================
   PARENT DASHBOARD STYLES
   Add this to styles.css or create a new parent-dashboard.css
   ============================================================ */

/* ==================== PARENT DASHBOARD ==================== */

.parent-dashboard {
    min-height: 100vh;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 30%, #e0f2fe 100%);
    padding: 0;
}

.parent-header {
    background: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.parent-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.parent-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.parent-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    margin: 0;
}

.parent-header h1 span {
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.parent-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin: 4px 0 0 0;
    font-size: 0.95rem;
}

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

.parent-welcome {
    display: none; /* Hidden - using toast instead */
}

.btn-logout {
    background: #ef4444;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Welcome Toast Popup */
.welcome-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    opacity: 0;
    animation: toastIn 0.4s ease forwards, toastOut 0.4s ease 4.5s forwards;
}

.welcome-toast::before {
    content: '\1F44B';
    margin-right: 10px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.parent-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== CHILDREN SECTION ==================== */

.children-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.section-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
}

.btn-add-child {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-add-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-add-child span {
    font-size: 1.3rem;
    font-weight: 400;
}

/* Children Grid */
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.loading-children {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Child Card */
.child-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.child-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.2);
    border-color: #14b8a6;
}

.child-card-settings-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.3rem;
    opacity: 0.5;
    transition: all 0.2s;
    z-index: 2;
}

.child-card:hover .child-card-settings-icon {
    opacity: 1;
    transform: rotate(45deg);
}

.child-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.child-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.child-bolt-avatar {
    position: relative;
    width: 42px;
    height: 58px;
    flex-shrink: 0;
}

.child-bolt-face {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    line-height: 1;
}

.child-info h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.child-info .username {
    color: #64748b;
    font-size: 0.9rem;
}

.child-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.child-stat {
    text-align: center;
    padding: 12px 8px;
    background: white;
    border-radius: 10px;
}

.child-stat-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f766e;
}

.child-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.child-last-active {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(13, 148, 136, 0.2);
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.child-last-active.active-today {
    color: #22c55e;
}

.child-last-active.active-today::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

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

/* Empty State */
.no-children {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.no-children h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.no-children p {
    color: #64748b;
    margin-bottom: 24px;
}

.btn-add-child-large {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
}

.btn-add-child-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.5);
}

/* ==================== FAMILY STATS ==================== */

.parent-stats-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.parent-stats-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 24px 0;
}

.family-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ==================== MODALS ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.modal-header p {
    color: #64748b;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-group small {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.form-actions .btn-secondary {
    flex: 1;
    padding: 14px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-secondary:hover {
    background: #e2e8f0;
}

.form-actions .btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border: none;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==================== CHILD DETAIL MODAL ==================== */

.child-detail-header {
    text-align: center;
    margin-bottom: 28px;
}

.child-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.child-detail-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.child-detail-header .child-username {
    color: #64748b;
    font-size: 1rem;
}

.child-stats-detail {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-icon {
    font-size: 1.3rem;
    margin-right: 12px;
}

.stat-row .stat-label {
    flex: 1;
    color: #64748b;
}

.stat-row .stat-value {
    font-weight: 700;
    color: #1e293b;
}

.child-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    flex: 1;
    padding: 14px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #e2e8f0;
}

.btn-action.btn-danger {
    background: #ef4444;
    color: #1e293b;
    font-weight: 700;
}

.btn-action.btn-danger:hover {
    background: #dc2626;
}

/* ==================== LOGIN TYPE SELECTION ==================== */

.login-type-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.login-type-card h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin: 0 0 32px 0;
}

.login-type-options {
    display: flex;
    gap: 20px;
}

.login-type-btn {
    flex: 1;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-type-btn:hover {
    border-color: #0d9488;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.15);
}

.login-type-btn.student-btn:hover {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
}

.login-type-btn.parent-btn:hover {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.login-type-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.login-type-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-type-desc {
    font-size: 0.9rem;
    color: #64748b;
}

/* ==================== STUDENT LOGIN ==================== */

.student-login-container {
    position: relative;
}

.back-to-type {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #64748b;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.back-to-type:hover {
    color: #1e293b;
}

.student-login-container h1 {
    margin-top: 20px;
}

.help-text {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .parent-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .parent-header-right {
        width: 100%;
        justify-content: center;
    }
    
    .parent-content {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .btn-add-child {
        justify-content: center;
    }
    
    .children-grid {
        grid-template-columns: 1fr;
    }
    
    .child-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .login-type-options {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .child-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .parent-header h1 {
        font-size: 1.4rem;
    }
    
    .modal-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .child-stat-value {
        font-size: 1.1rem;
    }
    
    .child-stat-label {
        font-size: 0.7rem;
    }
}

/* ==================== EXPANDED CHILD DETAIL MODAL ==================== */

.child-detail-modal-expanded {
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

.btn-play-as-child {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s;
}

.btn-play-as-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.child-detail-accordions {
    margin-bottom: 20px;
}

.dashboard-accordion {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.dashboard-accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.2s;
}

.dashboard-accordion-header:hover {
    background: #f1f5f9;
}

.dashboard-accordion-header .accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-accordion-header .accordion-arrow {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s;
}

.dashboard-accordion-header.open .accordion-arrow {
    transform: rotate(180deg);
}

.dashboard-accordion-content {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

/* Level Options for Dashboard */
.level-options-dashboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.level-option-dashboard {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.level-option-dashboard:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.level-option-dashboard input[type="radio"] {
    margin-right: 12px;
    accent-color: #0d9488;
}

.level-option-dashboard input[type="radio"]:checked + .level-radio-content {
    color: #0f766e;
}

.level-option-dashboard .level-radio-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.level-option-dashboard .level-stars {
    font-size: 1rem;
}

.level-option-dashboard .level-name {
    font-weight: 600;
    flex: 1;
}

.level-option-dashboard .level-time {
    color: #64748b;
    font-size: 0.85rem;
}

/* Timer Options for Dashboard */
.timer-setting-dashboard {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.timer-options-dashboard {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.timer-option-dashboard {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.timer-option-dashboard:hover {
    border-color: #14b8a6;
}

.timer-option-dashboard input[type="radio"] {
    accent-color: #0d9488;
}

/* Current Level Display */
.current-level-section {
    margin-bottom: 12px;
}

.current-level-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
}

.current-level-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border-radius: 10px;
    border: 2px solid #14b8a6;
}

.current-level-display .level-name {
    font-weight: 700;
    color: #0f766e;
}

.current-level-display .level-time {
    background: #0a4d68;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Settings Saved Message */
.settings-saved-msg {
    margin-top: 12px;
    padding: 10px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* View Report Button */
.btn-view-report {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s;
}

.btn-view-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.section-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Account Settings */
.child-account-setting {
    margin-bottom: 16px;
}

.child-account-setting label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.setting-input-row {
    display: flex;
    gap: 10px;
}

.setting-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.setting-input-row input:focus {
    outline: none;
    border-color: #0d9488;
}

.btn-small-action {
    padding: 10px 18px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Responsive for expanded modal */
@media (max-width: 600px) {
    .child-detail-modal-expanded {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .timer-options-dashboard {
        flex-direction: column;
    }
    
    .setting-input-row {
        flex-direction: column;
    }
    
    .setting-input-row input {
        width: 100%;
    }
}

/* Setting hint text */
.setting-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ==================== DASHBOARD PROGRESS REPORT MODAL ==================== */

.dashboard-progress-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-progress-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-progress-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: #1e3a5f;
    margin: 0;
}

.child-name-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 5px 0 0;
}

/* Practice Level Pills */
.dash-practice-level {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.dash-level-pill {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    font-family: 'Quicksand', sans-serif;
}

.dash-level-pill.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

/* Report Sections */
.dash-report-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.dash-report-section h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: #1e3a5f;
    margin: 0 0 15px;
}

/* Week Calendar */
.dash-week-calendar {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.dash-week-day {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e2e8f0;
}

.dash-week-day.today {
    border-color: #0d9488;
    background: #f0fdfa;
}

.dash-week-day.completed {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #22c55e;
}

.dash-week-day.missed {
    background: #fef2f2;
    border-color: #fca5a5;
}

.dash-day-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.dash-day-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 4px;
}

/* Week Stats */
.dash-week-stats {
    display: flex;
    gap: 15px;
}

.dash-week-stat {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.dash-stat-value {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}

.dash-stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* Month Calendar */
.dash-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.dash-month-header h3 {
    margin: 0;
}

.dash-month-nav {
    background: #e2e8f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.2s;
}

.dash-month-nav:hover {
    background: #cbd5e1;
}

.dash-month-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dash-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.dash-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    padding: 5px;
}

.dash-month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dash-month-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    position: relative;
    background: #e2e8f0;
}

.dash-month-day.empty {
    background: transparent;
}

.dash-month-day.future {
    background: #f1f5f9;
    color: #94a3b8;
}

.dash-month-day.has-practice {
    background: linear-gradient(135deg, #86efac, #22c55e);
    color: white;
    font-weight: 700;
}

.dash-month-day.no-practice {
    background: #fca5a5;
    color: white;
}

.dash-month-day .day-num {
    font-size: 0.7rem;
    position: absolute;
    top: 2px;
}

.dash-month-day .day-mins {
    font-weight: 700;
    font-size: 0.8rem;
}

/* Progress Bar */
.dash-progress-bar {
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.dash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #86efac, #fbbf24);
    border-radius: 15px;
    transition: width 0.5s ease;
    width: 0%;
}

.dash-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: #1e3a5f;
}

.dash-progress-breakdown {
    display: flex;
    gap: 15px;
}

.dash-breakdown-item {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.dash-breakdown-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.dash-breakdown-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Tips Section */
.dash-tips-section {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.dash-tips-list {
    margin: 0;
    padding-left: 20px;
    color: #1e3a5f;
}

.dash-tips-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 500px) {
    .dashboard-progress-modal {
        padding: 16px;
    }
    
    .dash-week-calendar {
        flex-wrap: wrap;
    }
    
    .dash-week-day {
        min-width: calc(25% - 8px);
    }
    
    .dash-level-pill {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* ==================== DASHBOARD EMAIL REPORT SETTINGS ==================== */

.dash-email-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.dash-email-settings h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: #1e3a5f;
    margin: 0 0 12px;
}

.dash-email-recipients {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.dash-email-recipient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
}

.dash-email-recipient.primary {
    background: #f8fafc;
}

.dash-email-address {
    font-size: 0.9rem;
    color: #334155;
}

.dash-email-lock {
    font-size: 0.85rem;
    opacity: 0.6;
}

.dash-email-remove {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-email-remove:hover {
    background: #fecaca;
}

.dash-add-email-section {
    margin-bottom: 16px;
}

.dash-add-email-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-add-email-btn:hover {
    border-color: #0d9488;
    color: #0d9488;
}

.dash-add-email-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-add-email-form input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
}

.dash-add-email-form input:focus {
    border-color: #0d9488;
    outline: none;
}

.dash-add-email-buttons {
    display: flex;
    gap: 8px;
}

.btn-small-cancel {
    padding: 8px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-small-cancel:hover {
    background: #e2e8f0;
}

.dash-report-frequency {
    margin-bottom: 12px;
}

.dash-report-frequency > label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.dash-frequency-options {
    display: flex;
    gap: 8px;
}

.dash-frequency-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-frequency-option:hover {
    border-color: #0d9488;
}

.dash-frequency-option input {
    display: none;
}

.dash-frequency-option input:checked + span {
    color: #0d9488;
    font-weight: 700;
}

.dash-frequency-option:has(input:checked) {
    border-color: #0d9488;
    background: #f0fdfa;
}

.dash-frequency-option span {
    font-size: 0.9rem;
    color: #64748b;
}

.dash-day-selector {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-day-selector label {
    font-size: 0.9rem;
    color: #64748b;
}

.dash-day-selector select {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: white;
}

.dash-frequency-hint {
    font-size: 0.8rem;
    color: #22c55e;
    text-align: center;
    margin: 8px 0 0;
}

.dash-email-status {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

.dash-email-status.success {
    color: #22c55e;
}

.dash-email-status.error {
    color: #dc2626;
}
