:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #4895ef;
    --light: #f5f5f7;
    --dark: #2d2d2d;
    --gray: #6c757d;
    --success: #4cc9f0;
    --warning: #f72585;
    --info: #7209b7;
    --prepared: #38b000;
    --concern: #ff9505;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --header-bg: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    --header-text: #ffffff;
    --situation-1: #ff6b6b;
    --situation-2: #4cc9f0;
    --situation-3: #9d4edd;
    --situation-4: #f9c74f;
    --situation-5: #43aa8b;
    --situation-6: #f8961e;
    --situation-7: #577590;
    --situation-8: #90be6d;
    --situation-9: #f94144;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Page Containers */
.page-container {
    width: 100%;
    max-width: 1000px;
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

.page-container.active {
    display: flex;
}

/* Header Styles */
.app-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.app-header.abbreviated {
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}
        .app-icon-container {
            width: 80px;
            height: 80px;
            flex-shrink: 0;
            border-radius: 16px;
            overflow: hidden;

            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .app-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .app-icon-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 24px;
        }
.header-text h1 {
    color: var(--header-text);
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-text .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
}

                 .app-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 4px 10px;
    border: 1px solid #efe2d6;
    border-radius: 8px;
    background: #fcf6ef;
    color: #4f3d2e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.app-header .back-link:hover,
.app-header .back-link:focus-visible {
    border-color: #3f2e21;
    color: #3f2e21;
    background: #f3e7da;
    text-decoration: none;
}

.abbreviated .header-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.abbreviated .header-text .subtitle {
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px var(--shadow);
}

/* Welcome Page Styles */
.welcome-content {
    text-align: center;
    padding: 20px 0;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.welcome-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 2rem;
}

.welcome-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ready-text {
    margin: 30px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Instructions */
.instructions {
    background-color: #f0f9ff;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid var(--primary);
    text-align: left;
}

.instructions h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.fun-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.fun-step {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.step-number {
    background: var(--situation-1);
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: bold;
}

.fun-step:nth-child(2) .step-number {
    background: var(--situation-5);
}

.fun-step:nth-child(3) .step-number {
    background: var(--situation-7);
}

.fun-step strong {
    display: block;
    margin-bottom: 5px;
}

.fun-step p {
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--gray);
}

.benefits-section {
    background: #e7f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--success);
}

.benefits-section h4 {
    color: #155724;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #155724;
}

.benefits-items div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-items i {
    color: var(--success);
    flex-shrink: 0;
}

/* Selection Page */
.selection-content {
    padding: 20px 0;
}

.selection-header {
    text-align: center;
    margin-bottom: 30px;
}

.selection-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.selection-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.situation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.situation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.situation-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 70px;
    width: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.situation-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.situation-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.situation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.situation-tag {
    background: #e9ecef;
    color: var(--dark);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.custom-situation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.custom-situation h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.disclaimer-note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #856404;
}

.disclaimer-note i {
    flex-shrink: 0;
    margin-top: 3px;
}

.selection-actions {
    margin-top: 30px;
    text-align: center;
}

/* Reflection Page Styles */
.reflection-content {
    padding: 20px 0;
}

.reflection-header {
    text-align: center;
    margin-bottom: 20px;
}

.reflection-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--situation-5) 0%, var(--situation-7) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.reflection-header p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Progress */
.progress-container {
    margin-bottom: 25px;
}

.progress-bar {
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Loading and Error States */
.loading, .data-error {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.data-error {
    text-align: center;
    padding: 40px;
}

.data-error i {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 20px;
}

/* Question Sets */
.question-set {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background: var(--light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: none;
}

.question-set.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.question-set h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Statements */
.statement {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.statement.selected {
    background-color: #f0f9ff;
    border-left: 4px solid var(--primary);
}

.statement label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}

.statement input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bottom Progress */
.bottom-progress-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.bottom-progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.bottom-progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bottom-progress {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Reflection Complete */
.reflection-complete {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--situation-5) 0%, var(--situation-2) 100%);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
    display: none;
}

.results-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.secondary-btn {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--gray);
}

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

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

.cancel-btn:hover {
    background: #5a6268;
}

#prev-btn,
#view-results-btn {
    display: none;
}

/* Footer */
.app-footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 25px 30px 15px 30px;
    border-radius: 0 0 16px 16px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-footer.abbreviated {
    padding: 15px 20px 10px 20px;
    border-radius: 0 0 12px 12px;
    margin-top: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4::before {
    content: "";
    display: block;
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.85rem;
}

.abbreviated .footer-content {
    grid-template-columns: 1fr;
    gap: 15px;
}

.abbreviated .footer-section {
    display: none;
}

.abbreviated .footer-section:first-child {
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.version-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Results Page Styles */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-title-banner {
    background: linear-gradient(135deg, var(--situation-2) 0%, var(--situation-9) 100%);
    padding: 10px 30px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.results-title-banner h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.results-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Reflection Summary */
.reflection-summary {
    margin-bottom: 30px;
}

.reflection-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.reflection-results-header {
    background: linear-gradient(135deg, var(--situation-6) 0%, var(--situation-7) 100%);
    padding: 15px;
    border-radius: 8px;
    margin: -25px -25px 20px -25px;
    text-align: center;
}

.reflection-results-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
}

.results-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.primary-result {
    flex: 1;
    min-width: 200px;
}

.primary-result h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

#primary-feeling-result {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.result-description {
    flex: 2;
    min-width: 300px;
}

.insight-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid var(--situation-9);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--situation-9);
    flex-wrap: wrap;
}

/* Insights */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.insight-card {
    padding: 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    transition: transform 0.3s ease;
}

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

.insight-card.highlighted {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.insight-card h4 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.insight-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
}

.insight-desc {
    font-size: 0.9rem;
    color: var(--dark);
}

.insight-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.insight-fill {
    height: 100%;
    border-radius: 4px;
}

/* Energy Section */
.energy-section {
    margin: 30px 0;
}

.energy-path {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    flex-wrap: wrap;
}

.path-card {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.prepared {
    border-left: 4px solid var(--prepared);
}

.concerns {
    border-left: 4px solid var(--concern);
}

.path-card h4 {
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.path-card i {
    margin-right: 10px;
}

/* Goals Grid */
.practical-examples {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--info);
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.example-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.example-item i {
    color: var(--primary);
    margin-right: 8px;
}

/* Action Section */
.action-section {
    margin: 30px 0;
}

.action-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.action-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--situation-5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-item h4 {
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Reflection Questions */
.reflection-questions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.reflection-questions h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.reflection-questions ul {
    padding-left: 20px;
}

.reflection-questions li {
    margin-bottom: 10px;
}

/* Practical Tips */
.practical-tips {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.practical-tips h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.practical-tips ul {
    padding-left: 20px;
}

.practical-tips li {
    margin-bottom: 10px;
}

/* Results Disclaimer */
.disclaimer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.disclaimer p {
    margin-bottom: 10px;
}

.disclaimer p:last-child {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Results Actions */
.results-actions {
    margin-top: 40px;
}

.email-results-btn {
    background: linear-gradient(135deg, var(--situation-1) 0%, var(--situation-9) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
}

.email-results-btn:hover {
    background: linear-gradient(135deg, var(--situation-9) 0%, #ff3838 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.restart-info {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.restart-info p {
    margin: 0;
    color: var(--gray);
}

.restart-info p:first-child {
    margin-bottom: 5px;
}

.restart-info p:last-child {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-intro {
    background: #d1ecf1;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--info);
}

.modal-intro p {
    margin: 0;
    color: #0c5460;
    font-weight: bold;
}

.modal-warning {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.modal-warning p {
    margin: 0 0 10px 0;
}

.modal-warning ul {
    margin: 0;
    padding-left: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions button {
    flex: 1;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.results-modal .modal-icon {
    color: var(--primary);
}

.success-banner {
    background: linear-gradient(135deg, var(--situation-5) 0%, var(--situation-2) 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.success-banner p {
    margin: 0;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.auto-close-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Email Modal */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.email-modal.active {
    display: flex;
}

.email-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.email-modal-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.email-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.email-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.email-modal-body {
    padding: 20px;
}

.email-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.email-preview h4 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1rem;
}

.email-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.email-actions button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
}

/* Confetti Animation */
@keyframes confettiRain {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    z-index: 1999;
    animation: confettiRain 2s linear forwards;
}

.confetti:nth-child(odd) {
    background: var(--situation-1);
}

.confetti:nth-child(even) {
    background: var(--situation-7);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-header {
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .app-icon-container {
        width: 50px;
        height: 50px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 20px;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }

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

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .app-footer {
        padding: 20px 15px 10px 15px;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .energy-path {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }

    .email-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .app-header {
        padding: 12px;
    }

    .header-text h1 {
        font-size: 1.3rem;
    }

    .header-text .subtitle {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 15px;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .instructions {
        padding: 15px;
    }

    .statement {
        padding: 12px;
        margin-bottom: 10px;
    }

    button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .reflection-card h3 {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-actions button {
        padding: 12px 20px;
    }
}
/* Add to styles.css */
.insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.insight-title {
    flex: 1;
}

.insight-title h4 {
    margin: 0 0 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight-value {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.insight-desc {
    margin: 5px 0;
    font-size: 0.9em;
    color: var(--text-light);
}
/* Add to styles.css */
.descriptive-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid var(--situation-2);
}

.descriptive-summary h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.descriptive-summary p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.strengths-section {
    margin: 30px 0;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.strengths-card, .growth-card {
    padding: 25px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.strengths-card {
    border-left: 4px solid var(--prepared);
}

.growth-card {
    border-left: 4px solid var(--situation-4);
}

.strengths-card h4, .growth-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strengths-card ul, .growth-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.strengths-card li, .growth-card li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.strengths-note, .growth-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--gray);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Update the example-item for better readability */
.example-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.example-item i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.example-item div {
    flex: 1;
}

.example-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

/* Update action items for better visual appeal */
.action-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--situation-5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.action-item:last-child {
    border-left: 4px solid var(--situation-2);
}

.action-item h4 {
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.action-item p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Update reflection questions for better visual */
.reflection-questions li {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.reflection-questions li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Update preparation suggestions */
.practical-tips li {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--situation-5);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.practical-tips li i {
    color: var(--situation-5);
    margin-top: 3px;
    flex-shrink: 0;
}
/* Add to styles.css */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.email-modal.active {
    display: flex;
}

.email-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease-out;
}

.email-modal-header {
    background: linear-gradient(135deg, var(--situation-1) 0%, var(--situation-9) 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.email-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.email-modal-body {
    padding: 25px;
}

.email-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e5e7eb;
}

.email-preview h4 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.email-preview-content {
    white-space: pre-line;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.email-preview-info {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.email-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-actions button {
    flex: 1;
    min-width: 140px;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.email-actions .primary-btn {
    background: linear-gradient(135deg, var(--situation-5) 0%, var(--situation-7) 100%);
}

.email-actions .primary-btn:hover {
    background: linear-gradient(135deg, var(--situation-7) 0%, var(--situation-9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.email-actions .secondary-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
}

.email-actions .secondary-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

.email-actions .cancel-btn {
    background: transparent;
    color: var(--gray);
    border: 2px solid var(--gray);
    flex: 0 0 auto;
    min-width: 100px;
}

.email-actions .cancel-btn:hover {
    background: var(--gray);
    color: white;
}

/* Mobile optimization for email modal */
@media (max-width: 768px) {
    .email-modal {
        padding: 10px;
    }
    
    .email-modal-content {
        max-height: 85vh;
    }
    
    .email-modal-header {
        padding: 15px;
    }
    
    .email-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .email-modal-body {
        padding: 20px 15px;
    }
    
    .email-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .email-actions button {
        min-width: 100%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .email-modal-header {
        padding: 12px;
    }
    
    .email-modal-header h3 {
        font-size: 1rem;
    }
    
    .email-modal-body {
        padding: 15px 12px;
    }
    
    .email-preview {
        padding: 15px;
    }
    
    .email-preview-content {
        font-size: 11px;
        padding: 10px;
    }
}
// Add toast styles to CSS
/*
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    max-width: 300px;
    border-left: 5px solid var(--primary);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

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

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-success .toast-content i {
    color: var(--prepared);
}

.toast-error .toast-content i {
    color: var(--warning);
}

.toast-info .toast-content i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .toast-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
/* Add to your styles.css */
.modal-overlay {
    display: none; /* Keep as none initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Make sure the modal has proper styling */
.results-modal .modal-content {
    max-width: 600px;
}

.auto-close-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}/* Add to your styles.css */
.modal-overlay {
    display: none; /* Keep as none initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Make sure the modal has proper styling */
.results-modal .modal-content {
    max-width: 600px;
}

.auto-close-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}
/* Start Questionnaire issue ^/
 * 
 * /
/* Add this to the VERY END of your styles.css file */

/* Reset body positioning */
body {
    margin: 0;
    padding: 0;
    display: block !important;
    min-height: 100vh;
}

/* Fix for page containers */
.page-container {
    position: static !important;
    display: none;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

.page-container.active {
    display: block !important; /* Change from flex to block */
    min-height: auto;
}

/* Specifically target selection page */
#selection-page.page-container.active {
    display: block !important;
    position: static;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure main content starts at top */
.main-content {
    padding-top: 20px; /* Adjust as needed */
}

/* Remove any transforms that might be pushing it down */
* {
    transform: none !important;
}

/* Add this to your styles.css */
html {
    scroll-behavior: auto !important; /* Disable smooth scroll for page transitions */
}

/* Ensure each page starts fresh */
.page-container {
    scroll-margin-top: 0;
    scroll-padding-top: 0;
}

/* Optional: Add smooth scroll for other interactions */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}\/* Enhanced feeling display styles */
.feeling-display {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f0ff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.feeling-main {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.feeling-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 12px;
    font-weight: 500;
}

.feeling-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--situation-7);
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.feeling-context i {
    flex-shrink: 0;
}

/* Update insight cards for descriptive display */
.insight-card {
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.3rem;
}

.insight-title {
    flex: 1;
}

.insight-title h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-size: 1.2rem;
}

.insight-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.insight-bar {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.insight-fill {
    height: 100%;
    border-radius: 3px;
}