:root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --primary-lightest: #ede9fe;
    --secondary-color: #5b21b6;
    --text-color: #1f2937;
    --bg-color: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 4px 6px rgba(139, 92, 246, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#app {
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
}

.page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease forwards;
}

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

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.main-title {
    font-size: 4rem;
    text-align: center;
    margin-top: 80px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(139, 92, 246, 0.3);
    animation: pulse 2s infinite;
}

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

.subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 60px;
    color: var(--secondary-color);
    opacity: 0.8;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    outline: none;
}

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

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

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.2);
}

.btn.secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

.btn.secondary:hover {
    background-color: var(--primary-lightest);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.2);
}

.full-width {
    width: 100%;
}

.hidden {
    display: none;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    opacity: 0.5;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    opacity: 0.5;
}

.progress-item.active {
    opacity: 1;
    font-weight: 500;
}

.progress-item .checkmark {
    color: var(--success);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-item.completed .checkmark {
    opacity: 1;
    animation: scaleCheck 0.5s ease forwards;
}

@keyframes scaleCheck {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    width: 50%;
}

select,
input,
textarea {
    padding: 12px 16px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
    outline: none;
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    font-weight: 500;
    margin-bottom: 8px;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 10px;
    animation: fadeInBtn 0.5s ease forwards;
}

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

/* Statistics Page */
.progress-summary {
    text-align: center;
    margin: 0 auto 40px;
    animation: scaleUp 0.5s ease forwards;
    max-width: 600px;
}

@keyframes scaleUp {
    from {
        transform: scale(1);
        opacity: 0.5;
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

.stats-container {
    margin-bottom: 40px;
}

.stats-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.stat-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(-20px);
}

.stat-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.number {
    color: var(--primary-color);
    font-weight: 700;
    display: inline;
    animation: glow 2s infinite;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
}

#continue-btn {
    margin: 0 auto;
    display: block;
    opacity: 0;
}

#continue-btn.visible {
    opacity: 1;
    animation: fadeInBtn 0.5s ease forwards;
}

/* Account Creation Page */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.social-btn.google {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.social-btn.facebook {
    background-color: #4267B2;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: var(--bg-color);
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: #888;
}

/* Profile Page */
.profile-container {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-header {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--primary-lightest);
    flex-wrap: wrap;
}

.profile-pic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upload-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.upload-btn:hover {
    background-color: var(--primary-dark);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin-bottom: 8px;
}

.profile-info p {
    color: var(--text-color);
    opacity: 0.8;
}

.profile-details {
    padding: 30px;
}

.profile-actions {
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #eee;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.expandable-section {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.expandable-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    cursor: pointer;
}

.expandable-content {
    padding: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-section.expanded .expandable-content {
    max-height: 300px;
    overflow-y: auto;
}

.expandable-section.expanded .expandable-header i {
    transform: rotate(180deg);
}

.checkbox-group {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
        margin-top: 40px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
