@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --cream: #F6F3EE;
    --charcoal: #2F2F2F;
    --sage: #A8BFA3;
    --sage-light: #E8EDE5;
    --dusty-pink: #DEA4AC;
    --dusty-pink-dark: #CB8A96;
    --primary: #8E659C;
    --primary-dark: #7B5488;
    --sophie-bubble: #B69ED7;
}

* {
    font-family: 'Outfit', 'Inter', sans-serif;
}

html, body {
    background-color: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Colors */
.bg-cream {
    background-color: var(--cream);
}

.text-sage {
    color: var(--sage);
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: rgba(47, 47, 47, 0.6);
}

.border-sage-light {
    border-color: var(--sage-light) !important;
}

.border-sage {
    border-color: var(--sage);
}

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

.bg-light {
    background-color: #f9f7f4;
}

/* Custom Buttons */
.btn {
    border-radius: 20px;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    border-radius: 24px;
}

.btn-dusty-pink {
    background-color: var(--dusty-pink);
    color: white;
    box-shadow: 0 4px 15px rgba(222, 164, 172, 0.3);
}

.btn-dusty-pink:hover {
    background-color: var(--dusty-pink-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(222, 164, 172, 0.4);
    transform: translateY(-2px);
}

.btn-sophie {
    background-color: var(--sophie-bubble);
    color: white;
    box-shadow: 0 4px 15px rgba(182, 158, 215, 0.3);
}

.btn-sophie:hover {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(182, 158, 215, 0.4);
    transform: translateY(-2px);
}

.btn-outline-sage {
    color: var(--sage);
    border: 2px solid var(--sage);
    background-color: white;
}

.btn-outline-sage:hover {
    background-color: var(--sage);
    color: white;
    border-color: var(--sage);
}

.btn-outline-dark {
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
    background-color: white;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--charcoal);
    color: white;
}

.btn-link {
    color: var(--charcoal);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.btn-link:hover {
    opacity: 0.6;
}

/* Custom Rounded Corners */
.rounded-minimal-xl {
    border-radius: 32px;
}

.rounded-minimal-2xl {
    border-radius: 40px;
}

/* Sophie Avatar */
.sophie-avatar {
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 20px 50px rgba(142, 101, 156, 0.15);
    overflow: hidden;
    margin: 0 auto;
}

.sophie-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.sophie-avatar-small {
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.sophie-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
}

/* Sophie Bubble */
.sophie-bubble {
    background: linear-gradient(135deg, var(--sophie-bubble) 0%, var(--primary) 100%);
    position: relative;
    border-radius: 24px;
}

.sophie-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 32px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--sophie-bubble) 0%, var(--primary) 100%);
    transform: rotate(45deg);
}

.sophie-name {
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.sophie-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.sophie-status {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.sophie-message {
    font-style: italic;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Progress Bar */
.progress {
    background-color: var(--cream);
    border-radius: 10px;
    height: 6px;
    border: none;
}

.progress-bar {
    background-color: var(--sage);
    transition: width 0.4s ease;
    border-radius: 10px;
}

/* Screen Container */
.screen-container {
    min-height: 100vh;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Spinner */
.spinner-border {
    border-color: rgba(168, 191, 163, 0.2);
    border-right-color: var(--sage);
    animation: spinner-border 0.75s linear infinite;
    width: 100px;
    height: 100px;
    border-width: 4px;
}

/* Welcome Screen */
.encryption-badge {
    padding: 0.5rem 0.75rem;
    background-color: white;
    border-radius: 50rem;
    border: 1px solid var(--sage-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.encryption-badge i {
    color: var(--sage);
    animation: pulse 2s infinite;
}

.welcome-button-container {
    max-width: 400px;
}

.info-card {
    padding: 1rem;
    background-color: white;
    border-radius: 32px;
    border: 1px solid var(--sage-light);
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.info-card-label {
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.disclaimer-text {
    color: rgba(47, 47, 47, 0.6);
    font-size: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

.welcome-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--sage-light);
    opacity: 0.7;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.footer-values {
    margin-bottom: 0.5rem;
}

.footer-value {
    color: var(--sage);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.footer-separator {
    color: var(--sage);
    margin: 0 0.5rem;
}

.footer-copyright {
    color: rgba(47, 47, 47, 0.6);
    font-size: 10px;
}

/* Assessment Screen */
.assessment-card {
    background-color: white;
    border-radius: 40px;
    padding: 3rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--sage-light);
}

.question-counter {
    color: var(--sage);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    min-height: 4rem;
    line-height: 1.4;
}

.assessment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    font-size: 12px;
}

.srq-info-card {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 1.5rem;
    border: 1px solid var(--sage-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.srq-info-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.2em;
    opacity: 0.4;
    margin-bottom: 1rem;
}

.srq-info-text {
    color: rgba(47, 47, 47, 0.6);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Result Screen */
.result-card {
    background-color: white;
    border-radius: 40px;
    padding: 3rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--sage-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-score-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--cream);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.result-score {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.result-score-max {
    font-size: 1.5rem;
    color: rgba(47, 47, 47, 0.3);
}

.result-message-container {
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.7;
    font-style: italic;
}

.alert-text {
    font-size: 14px;
    margin-bottom: 0;
}

.recommendation-card {
    background-color: #f9f7f4;
    border-radius: 32px;
    padding: 1.5rem;
    border: 1px solid var(--primary);
}

.recommendation-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.recommendation-card p {
    color: rgba(47, 47, 47, 0.6);
    font-size: 14px;
    margin-bottom: 1rem;
}

.recommendation-sophie i {
    color: var(--primary);
}

.recommendation-sophie {
    border-color: var(--primary);
}

.recommendation-professional i {
    color: var(--sage);
}

.recommendation-professional {
    border-color: var(--sage);
}

/* Responsive */
@media (max-width: 768px) {
    .screen-container {
        padding: 1rem;
    }

    .assessment-card {
        padding: 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }
}
