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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #43e97b;
    --warning-color: #feca57;
    --danger-color: #f5576c;
    --info-color: #4facfe;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --border-radius: 16px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

/* Header Styles */
.app-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Fredoka', sans-serif;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin 3s linear infinite;
}

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

.logo h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.notification-btn {
    position: relative;
    background: white;
    border: 2px solid var(--info-color);
    color: var(--info-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.notification-btn:hover {
    background: var(--info-color);
    color: white;
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    min-height: calc(100vh - 120px);
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    width: 250px;
    height: fit-content;
    position: sticky;
    top: 100px;
    animation: slideInLeft 0.5s ease;
}

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

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-align: left;
}

.nav-item i {
    font-size: 1.2rem;
    width: 25px;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: var(--shadow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    animation: fadeIn 0.5s ease;
}

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

.view-section {
    display: none;
}

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

.view-header {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Fredoka', sans-serif;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    width: 100%;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #38f9d7);
    color: white;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.stat-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Children Overview */
.children-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.child-overview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.child-overview-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.child-overview-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow);
}

.child-overview-info {
    flex: 1;
}

.child-overview-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.child-overview-info p {
    color: #666;
    font-size: 0.9rem;
}

.child-overview-points {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Today's Tasks */
.todays-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.task-preview.completed {
    border-left-color: var(--success-color);
    opacity: 0.7;
}

.task-preview-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.task-preview-checkbox.checked {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.task-preview-info {
    flex: 1;
}

.task-preview-info h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.task-preview-info p {
    font-size: 0.8rem;
    color: #666;
}

/* Upcoming Schedule */
.upcoming-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.schedule-date {
    min-width: 60px;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
}

.schedule-date-day {
    font-size: 1.5rem;
    font-weight: bold;
}

.schedule-date-month {
    font-size: 0.8rem;
}

.schedule-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.schedule-info p {
    color: #666;
    font-size: 0.9rem;
}

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

.child-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.child-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: 0;
}

.child-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.child-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.child-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.child-age {
    color: #666;
    margin-bottom: 1.5rem;
}

.child-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

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

.child-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.child-stat-label {
    font-size: 0.8rem;
    color: #666;
}

.child-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.child-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Calendar */
.calendar-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.calendar-controls h3 {
    margin: 0;
    font-size: 1.3rem;
    min-width: 200px;
    text-align: center;
}

.filter-bar {
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar label {
    font-weight: 500;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.calendar-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-color: var(--primary-color);
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.calendar-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-task-dot {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--primary-color);
}

/* Tasks Container */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.task-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.task-card.completed {
    border-left-color: var(--success-color);
    opacity: 0.85;
}

.task-card.approved {
    border-left-color: var(--info-color);
}

.task-checkbox {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.task-checkbox.checked {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.task-checkbox i {
    font-size: 1rem;
}

.task-info {
    flex: 1;
}

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

.task-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.task-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-child-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 20px;
    font-weight: 500;
}

.task-child-avatar {
    font-size: 1.2rem;
}

.task-points {
    background: linear-gradient(135deg, var(--warning-color), #ff9ff3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.task-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.task-status-badge.pending {
    background: #ffeaa7;
    color: #d63031;
}

.task-status-badge.completed {
    background: #b2fef7;
    color: #00b894;
}

.task-status-badge.approved {
    background: #a29bfe;
    color: #6c5ce7;
}

/* Rewards Grid */
.rewards-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.rewards-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.reward-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

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

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

.reward-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.reward-cost {
    background: linear-gradient(135deg, var(--warning-color), #ff9ff3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.reward-actions {
    display: flex;
    gap: 0.5rem;
}

.reward-actions .btn {
    flex: 1;
    padding: 0.5rem;
}

/* Redemption History */
.redemption-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.redemption-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.redemption-icon {
    font-size: 2rem;
}

.redemption-info {
    flex: 1;
}

.redemption-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.redemption-info p {
    color: #666;
    font-size: 0.9rem;
}

.redemption-cost {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    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;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.modal-content form {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

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

.avatar-selector,
.icon-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.avatar-option,
.icon-option {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover,
.icon-option:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.avatar-option.selected,
.icon-option.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 20px;
}

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

.notification-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--info-color);
    animation: slideInRight 0.3s ease;
}

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

.notification-item.success {
    border-left-color: var(--success-color);
}

.notification-item.warning {
    border-left-color: var(--warning-color);
}

.notification-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.notification-item p {
    font-size: 0.85rem;
    color: #666;
}

.notification-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Notifications Toast */
#notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast-notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--info-color);
}

.toast-notification.success {
    border-left-color: var(--success-color);
}

.toast-notification.error {
    border-left-color: var(--danger-color);
}

.toast-notification.warning {
    border-left-color: var(--warning-color);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Kid View Mode Styles */
body.kid-mode .sidebar {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

body.kid-mode .nav-item {
    color: white;
}

body.kid-mode .nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.kid-mode .nav-item.active {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .view-mode-toggle span {
        display: none;
    }
    
    .app-container {
        flex-direction: column;
        margin: 1rem auto;
        gap: 1rem;
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        padding: 1rem;
        transform: translateY(100%);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateY(0);
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-item {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.25rem;
        min-width: 80px;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .view-header {
        padding: 1.5rem;
    }
    
    .view-header h2 {
        font-size: 1.5rem;
    }
    
    .children-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        padding: 0.25rem;
        font-size: 0.85rem;
    }
    
    .task-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .notification-panel {
        width: calc(100vw - 40px);
    }
    
    .filter-bar {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .notification-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .calendar-day-name {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Auth Screen Styles */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.auth-screen.hidden {
    display: none;
}

.auth-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.auth-logo h1 {
    font-size: 2.5rem;
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
}

.auth-logo p {
    color: #666;
    font-size: 0.95rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

.header-user-info i {
    font-size: 1.2rem;
}

/* Achievements Styles */
.achievements-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.achievements-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.badge-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.badge-card.earned {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1), rgba(56, 249, 215, 0.1));
}

.badge-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.badge-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

.badge-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.badge-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.badge-progress-bar {
    background: linear-gradient(135deg, var(--success-color), #38f9d7);
    height: 100%;
    transition: width 0.3s ease;
}

.badge-earned-date {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

.streaks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.streak-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.streak-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.streak-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.streak-child-avatar {
    font-size: 2rem;
}

.streak-count {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    margin: 1rem 0;
}

.streak-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Allowance Styles */
.allowance-overview {
    margin-bottom: 2rem;
}

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

.allowance-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.allowance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.allowance-card-avatar {
    font-size: 2.5rem;
}

.allowance-card-name {
    font-size: 1.3rem;
    font-weight: 600;
}

.allowance-balance {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--success-color);
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 0.5rem;
}

.allowance-label {
    color: #666;
    font-size: 0.9rem;
}

.allowance-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.allowance-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--info-color);
}

.transaction-item.earned {
    border-left-color: var(--success-color);
}

.transaction-item.spent {
    border-left-color: var(--danger-color);
}

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

.transaction-info {
    flex: 1;
}

.transaction-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.transaction-info p {
    color: #666;
    font-size: 0.9rem;
}

.transaction-amount {
    font-size: 1.3rem;
    font-weight: bold;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

/* Analytics Styles */
.analytics-filters {
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.analytics-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#leaderboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.leaderboard-avatar {
    font-size: 2rem;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.leaderboard-stats {
    color: #666;
    font-size: 0.9rem;
}

.leaderboard-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Photo Upload Styles */
.file-input {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: var(--primary-color);
}

.photo-preview {
    margin-top: 1rem;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Timer Styles */
.timer-display {
    font-size: 5rem;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-color);
    margin: 2rem 0;
    text-align: center;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Enhanced Task Card with Photo */
.task-photo {
    margin-top: 1rem;
    text-align: center;
}

.task-photo img {
    max-width: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-photo img:hover {
    transform: scale(1.05);
}

.task-photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--info-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive for new features */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .header-user-info span {
        display: none;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .app-header,
    .mobile-menu-toggle,
    .notification-panel,
    #notifications-container,
    .btn,
    .modal,
    .auth-screen {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
    }
}