/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

.breadcrumb {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-50%) scale(1.05);
}

/* Children Cards Grid */
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.child-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.child-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.child-avatar {
    font-size: 6rem;
    margin-bottom: 20px;
    line-height: 1;
}

.child-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 25px;
}

.child-stats {
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
    font-weight: 600;
}

/* Week Cards Grid */
.weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.week-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.week-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.week-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.week-card.locked:hover {
    transform: none;
}

.week-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
}

.progress-ring {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: #4caf50;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.week-status {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

/* Day Cards Grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.day-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.day-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.day-header {
    margin-bottom: 20px;
}

.day-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.day-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.day-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.5s ease;
}

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

.activities-preview {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.activity-icon {
    font-size: 2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.activity-icon.complete {
    opacity: 1;
    transform: scale(1.2);
}

.complete-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Activities Overview */
.activities-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.activity-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.activity-card.complete {
    border: 3px solid #4caf50;
}

.activity-icon-large {
    font-size: 4rem;
    margin-bottom: 15px;
}

.activity-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.activity-type {
    font-size: 1rem;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.activity-info {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
}

.start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Question Container */
.question-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.question-progress {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #667eea;
}

.activity-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.question-content {
    margin: 30px 0;
}

.question-text {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Question Inputs */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.option-btn {
    background: white;
    border: 3px solid #e0e0e0;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
}

.option-btn:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.option-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Drag and Drop */
.drag-drop-container {
    margin: 30px 0;
}

.drop-zone {
    min-height: 120px;
    background: #f5f5f5;
    border: 3px dashed #ccc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    background: #e3f2fd;
    border-color: #667eea;
}

.drop-hint {
    color: #999;
    font-size: 1.2rem;
    text-align: center;
}

.drag-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.drag-item {
    background: white;
    border: 3px solid #667eea;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: move;
    transition: all 0.3s ease;
    color: #333;
}

.drag-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.drag-item.dragging {
    opacity: 0.5;
}

/* Text Input */
.text-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.text-input:focus {
    border-color: #667eea;
}

/* Clock Display */
.clock-container {
    text-align: center;
}

.clock-display {
    margin: 30px auto;
    display: inline-block;
}

/* Action Buttons */
.question-actions {
    text-align: center;
    margin: 30px 0;
}

.submit-btn {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Feedback */
.feedback {
    display: none;
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.feedback.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

.feedback-correct {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
}

.feedback-incorrect {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.feedback-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.next-btn,
.try-again-btn {
    background: white;
    color: #333;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover,
.try-again-btn:hover {
    transform: scale(1.05);
}

/* Completion Screen */
.completion-screen {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.completion-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.completion-screen h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.completion-screen p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.primary-btn,
.secondary-btn {
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #e0e0e0;
    color: #333;
}

.secondary-btn:hover {
    background: #d0d0d0;
    transform: scale(1.05);
}

/* Error Message */
.error {
    background: white;
    color: #f44336;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    margin: 20px;
}

/* Settings Button */
.settings-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-50%) rotate(90deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 30px;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.setting-item {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 15px;
}

.setting-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.setting-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.danger-btn {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.file-upload-btn {
    display: inline-block;
    margin-left: 10px;
}

#stats-display {
    margin-top: 10px;
}

#stats-display p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}

#stats-display strong {
    color: #667eea;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .back-btn {
        position: static;
        transform: none;
        margin-bottom: 15px;
        display: block;
    }

    .back-btn:hover {
        transform: scale(1.05);
    }

    .settings-btn {
        position: static;
        transform: none;
        margin: 0 auto 15px;
    }

    .settings-btn:hover {
        transform: rotate(90deg);
    }

    .children-grid,
    .weeks-grid,
    .days-grid,
    .activities-overview {
        grid-template-columns: 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 1.5rem;
    }

    .option-btn {
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 10% 20px;
        padding: 30px 20px;
    }
}
