/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #FFD700;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.nav-btn:hover {
    background: #f0f4ff;
    color: #667eea;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.section-title {
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

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

.btn-success {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
}

.btn-warning {
    background: linear-gradient(45deg, #FFEAA7, #FDCB6E);
    color: #333;
}

.btn-danger {
    background: linear-gradient(45deg, #FF6B6B, #E55656);
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(45deg, #FF6B6B, #4ECDC4); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(45deg, #4ECDC4, #44A08D); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(45deg, #FFEAA7, #FDCB6E); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(45deg, #DDA0DD, #9E7BB5); }

.stat-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #666;
    font-weight: 500;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Kids Grid */
.kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kid-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kid-card:hover {
    transform: translateY(-5px);
}

.kid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--kid-color, #667eea);
}

.kid-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: var(--kid-color, #667eea);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kid-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.kid-age {
    color: #666;
    margin-bottom: 1rem;
}

.kid-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.kid-stat {
    text-align: center;
}

.kid-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kid-color, #667eea);
}

.kid-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kid-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.task-card:hover {
    transform: translateY(-3px);
}

.task-card.completed {
    opacity: 0.8;
    background: linear-gradient(135deg, #f8fffa, #e8f5e8);
}

.task-card.missed {
    background: linear-gradient(135deg, #fff8f8, #ffe8e8);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.task-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.task-badge.daily { background: #E3F2FD; color: #1976D2; }
.task-badge.weekly { background: #F3E5F5; color: #7B1FA2; }
.task-badge.recurring { background: #4ECDC4 !important; color: white !important; }

.task-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.task-points {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.task-due {
    color: #666;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.task-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #667eea;
}

/* Charts */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chart-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* Achievements */
.achievements-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.achievement-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.achievement-points {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.9rem;
    color: #666;
}

.activity-time {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

/* Forms */
form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-picker label {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.color-picker input[type="radio"]:checked + label {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Loading */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1500;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #4ECDC4;
}

.toast.success { border-left-color: #4ECDC4; }
.toast.error { border-left-color: #FF6B6B; }
.toast.warning { border-left-color: #FFEAA7; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
    }
}

/* Score and Reading Styles */
.score-section,
.reading-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

.book-capture-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.book-preview {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 280px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.book-placeholder {
    text-align: center;
    color: #666;
    padding: 1rem;
}

.book-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.book-placeholder p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.book-result {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 1rem;
    text-align: center;
}

.book-cover {
    max-width: 120px;
    max-height: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}

.book-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.book-details p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.book-controls {
    text-align: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.book-recognition-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.book-recognition-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.recognition-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Banking Styles */
.banking-kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.banking-kid-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 5px solid var(--kid-color, #667eea);
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.banking-kid-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--kid-color, #667eea), var(--kid-color, #667eea));
    color: white;
}

.banking-kid-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

.banking-kid-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.banking-kid-info p {
    opacity: 0.9;
    font-size: 1rem;
}

.banking-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.banking-account {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.banking-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.account-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.account-info p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kid-color, #667eea);
    margin: 0;
}

.banking-transactions {
    padding: 0 1.5rem 1.5rem;
}

.banking-transactions h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.transactions-list {
    max-height: 200px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.transaction-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.transaction-details {
    flex: 1;
}

.transaction-details p {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.transaction-details small {
    color: #666;
    font-size: 0.8rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.9rem;
}

.transaction-amount.deposit {
    color: #4CAF50;
}

.transaction-amount.spend {
    color: #f44336;
}

.banking-actions {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

/* Achievement Categories */
.achievement-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.achievement-card.task {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.achievement-card.coin {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.achievement-card.book {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.achievement-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.achievement-milestone {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: inline-block;
}

/* Avatar Camera Styles */
.avatar-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.avatar-type-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.avatar-type-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.avatar-type-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.avatar-type-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.avatar-type-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar-section {
    display: none;
    margin-top: 1.5rem;
}

.avatar-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.camera-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.camera-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    text-align: center;
    color: white;
    padding: 2rem;
}

.camera-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.camera-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview,
.cartoon-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    position: relative;
}

.photo-preview img,
.cartoon-preview img {
    max-width: 100%;
    max-height: 70%;
    border-radius: 10px;
    object-fit: cover;
}

.photo-actions,
.cartoon-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.photo-actions .btn,
.cartoon-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.camera-controls {
    text-align: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-preview-container {
    text-align: center;
    margin-top: 0.5rem;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: #FF6B6B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.converting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 15px;
}

.converting-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.converting-text {
    font-size: 0.9rem;
    text-align: center;
}

/* Recurring Task Styles */
.recurring-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.recurring-label:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.recurring-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.recurring-options {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.cycle-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .cycle-buttons {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.cycle-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.cycle-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.cycle-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cycle-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cycle-btn span {
    font-weight: 600;
    font-size: 1rem;
}

.cycle-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Custom Weekly Options */
.custom-weekly-options {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

.custom-weekly-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.95rem;
}

.weekday-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .weekday-checkboxes {
        grid-template-columns: repeat(7, 1fr);
    }
}

.weekday-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.weekday-checkbox:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.weekday-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.weekday-checkbox input[type="checkbox"]:checked + .weekday-name {
    color: white;
}

.weekday-checkbox input[type="checkbox"]:checked ~ * {
    color: white;
}

.weekday-checkbox:has(input:checked) {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.weekday-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    transition: color 0.3s ease;
}

.custom-weekly-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-left: 4px solid #667eea;
}

.custom-weekly-preview i {
    color: #667eea;
    margin-right: 0.5rem;
}

#weekday-preview {
    font-weight: 500;
}

/* Coin Progress Summary */
.coin-progress-summary {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.progress-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.progress-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.progress-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.progress-card-content {
    flex: 1;
}

.progress-card-content h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.progress-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive progress cards */
@media (max-width: 768px) {
    .progress-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .progress-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .progress-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-number {
        font-size: 1.5rem;
    }
}

.recurring-info {
    margin-top: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #4ECDC4;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-card i {
    color: #4ECDC4;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-card strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Finance Education Styles */
.finance-splits {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.finance-split-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.finance-split-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.finance-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.finance-content {
    flex: 1;
}

.finance-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.finance-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.finance-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ECDC4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.finance-amount::before {
    content: '🪙';
    font-size: 1.1rem;
}

/* Task overdue styles */
.task-card.overdue {
    border-left: 4px solid #FF6B6B;
    background: linear-gradient(135deg, #fff8f8, #ffe8e8);
}

.task-due.overdue {
    color: #FF6B6B;
    font-weight: 600;
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .finance-splits {
        gap: 1rem;
    }
    
    .finance-split-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .finance-icon {
        margin-bottom: 0.5rem;
    }
    
    .avatar-type-selector {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .camera-preview {
        height: 250px;
        max-width: 250px;
    }
    
    .camera-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .photo-actions,
    .cartoon-actions {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kids-grid,
    .tasks-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .kid-actions {
        flex-direction: column;
    }
    
    .task-actions {
        flex-direction: column;
    }
    
    .task-btn {
        width: 100%;
        justify-content: center;
    }
    
    .finance-split-item {
        padding: 1rem;
    }
    
    .finance-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Weekly Coin Distribution Styles */
.kids-coin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kid-coin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e0e7ff;
}

.kid-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kid-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.coin-division-quiz {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.division-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.division-inputs input {
    padding: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
}

.wheel-note {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Wheel Game Styles */
.wheel-modal .modal-content {
    max-width: 600px;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    border: 4px solid #4f46e5;
    overflow: hidden;
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.wheel-segment.win {
    background: linear-gradient(45deg, #10b981, #059669);
}

.wheel-segment.lose {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.segment-text {
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    transform: rotate(-18deg);
    margin-top: -30px;
    margin-left: -10px;
}

.spin-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wheel-result {
    text-align: center;
    padding: 2rem;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-icon.win {
    color: #10b981;
}

.result-icon.lose {
    color: #ef4444;
}

.coins-change {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.coins-change p {
    margin: 0.5rem 0;
}

.no-coins {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Mobile responsiveness for new features */
@media (max-width: 768px) {
    .division-inputs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .division-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .segment-text {
        font-size: 0.7rem;
    }
}

/* Banking Kids Grid Styles */
.banking-kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.banking-kid-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e7ff;
    transition: all 0.3s ease;
}

.banking-kid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.banking-kid-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.banking-kid-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    overflow: hidden;
}

.banking-kid-info h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.banking-kid-info p {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.banking-kid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.banking-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.banking-accounts {
    margin-bottom: 1.5rem;
}

.banking-accounts h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.1rem;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.five-account-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.five-account-preview {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.allocation-summary,
.quiz-summary {
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    clear: both;
    display: block;
}

.account-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.account-item:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.account-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.account-name {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.loading-accounts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.loading-accounts i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #3b82f6;
}

.error-message {
    grid-column: 1 / -1;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.error-message i {
    margin-right: 0.5rem;
}

.account-balance {
    font-weight: bold;
    color: #059669;
    font-size: 1rem;
}

.account-percentage {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.pagination-controls button {
    min-width: 100px;
    transition: all 0.2s ease;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-controls span {
    font-weight: 500;
    color: #6b7280;
}

/* Banking Account Allocation */
.allocation-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.no-allocation {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.remainder-note {
    display: block;
    margin: 0;
    padding: 0.8rem 1rem;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #bae6fd;
    position: static;
    z-index: 1;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.remainder-note i {
    color: #0284c7;
    font-size: 1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.remainder-note span {
    vertical-align: middle;
}

/* Allocation Quiz Styles */
.coin-allocation-quiz {
    margin-top: 1rem;
}

.allocation-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.allocation-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.allocation-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.allocation-item input {
    width: 80px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}
    font-size: 0.9rem;
    text-align: center;
}

.banking-actions {
    display: flex;
    gap: 0.75rem;
}

.banking-actions .btn {
    flex: 1;
}

/* Mobile responsiveness for banking */
/* Large screens - ensure proper container control */
@media (min-width: 1200px) {
    .banking-kids-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .banking-kid-card {
        max-width: none;
    }
    
    .remainder-note {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .banking-kids-grid {
        grid-template-columns: 1fr;
    }
    
    .banking-kid-stats {
        grid-template-columns: 1fr;
    }
    
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .remainder-note {
        white-space: normal;
        text-overflow: unset;
    }
    
    .banking-actions {
        flex-direction: column;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1199px) {
    .banking-kids-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .remainder-note {
        white-space: normal;
        text-overflow: unset;
    }
}

/* Transaction History Modal Styles */
.transaction-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border-left: 4px solid;
}

.summary-card.income {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #f8f9fa);
}

.summary-card.expense {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f8f9fa);
}

.summary-card.balance.positive {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1, #f8f9fa);
}

.summary-card.balance.negative {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #f8f9fa);
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.summary-card.income .summary-icon {
    background: #28a745;
}

.summary-card.expense .summary-icon {
    background: #dc3545;
}

.summary-card.balance.positive .summary-icon {
    background: #17a2b8;
}

.summary-card.balance.negative .summary-icon {
    background: #ffc107;
}

.summary-content h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.summary-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.list-title {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.empty-transactions {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.transactions-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.transaction-item .transaction-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.transaction-item.income .transaction-icon {
    background: #28a745;
}

.transaction-item.expense .transaction-icon {
    background: #dc3545;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.transaction-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.transaction-category {
    background: #e9ecef;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.transaction-amount.income {
    color: #28a745;
}

.transaction-amount.expense {
    color: #dc3545;
}

@media (max-width: 480px) {
    .banking-kid-card {
        padding: 1rem;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .remainder-note {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
        white-space: normal;
        text-overflow: unset;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        padding: 0.75rem;
    }
    
    .transaction-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}