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

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar a {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
}

.navbar a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Desktop Menu */
.nav-links {
    display: flex;
}

/* Mobile Menu (Hidden by Default) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
    }

    .nav-links a {
        padding: 15px;
        text-align: center;
        width: 100%;
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    /* Show Menu When Active */
    .nav-active {
        display: flex;
    }
}

.nav-links li {
    list-style: none;
    margin: 0 10px;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.dashboard-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

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

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.dashboard-card h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    margin: 1rem;
    background: white;
}

.progress-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #f0f0f0;
}

.progress-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: #4caf50;
    transform: rotate(calc(var(--progress) * 3.6deg));
    transform-origin: center;
}

.topic-list, .stats-list {
    list-style: none;
    padding: 0;
}

.topic-list li, .stats-list li {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #45a049;
}

/* Small button variant - inherits from .btn */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.practice-button {
    text-align: center;
    margin-top: 1rem;
}

/* Home Page Styles */
.hero-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.hero-section h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p.lead {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.user-actions {
    margin: 2rem 0;
}

.user-info {
    background-color: #e8f5e9;
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
    min-width: 300px;
}

.auth-buttons {
    margin: 1.5rem 0;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #4caf50;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-success {
    background-color: #2196f3;
}

.btn-success:hover {
    background-color: #0b7dda;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.features-section {
    padding: 3rem 0;
    background-color: #f1f8e9;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.card {
    background: white;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card-text {
    color: #6c757d;
}

.text-primary {
    color: #4caf50;
}

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

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.d-flex {
    display: flex;
}

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

.gap-3 {
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .row {
        flex-direction: column;
    }
}

/* Account page styles */
.user-profile {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.profile-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
    color: #4caf50;
}

.profile-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.children-list {
    margin-bottom: 2rem;
}

.child-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.child-name {
    font-weight: bold;
    margin-right: 1rem;
}

.child-email {
    color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.add-child-section {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.add-child-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.add-child-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.radio-button {
    display: none;
}

.radio-label {
    padding: 0.5rem 1rem;
    border: 2px solid #4caf50;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4caf50;
}

.radio-button:checked + .radio-label {
    background-color: #4caf50;
    color: white;
}

.radio-label:hover {
    background-color: #e8f5e9;
}

.select-group {
    margin: 1rem 0;
}

.select-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    margin-bottom: 1rem;
}

.form-select:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* File Upload Styles */
.upload-section {
    padding: 2rem;
    text-align: center;
}

.upload-form {
    max-width: 500px;
    margin: 0 auto;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: block;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 2px dashed #4caf50;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background-color: #e8f5e9;
}

.upload-status {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.upload-status.uploading {
    display: block;
    background-color: #e3f2fd;
    color: #1976d2;
}

.upload-status.success {
    display: block;
    background-color: #e8f5e9;
    color: #4caf50;
}

.upload-status.error {
    display: block;
    background-color: #ffebee;
    color: #d32f2f;
}