body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F4FF, #E6F7F2);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

.card {
    background: #FFFFFF;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h2 {
    margin-top: 0;
    font-weight: 600;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: #6C9CFF;
    box-shadow: 0 0 0 3px rgba(108, 156, 255, 0.2);
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #F5F8FF;
    border: 1px solid #DBE5FF;
    font-size: 0.95rem;
    color: #2C3E50;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6C9CFF, #5AD1B8);
    color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

.footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a svg {
    transition: transform 0.2s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Category-specific colors */
.result.anxiety { background: #FFF5F5; border: 1px solid #FFB3B3; color: #C0392B; }
.result.bipolar { background: #FDF2FF; border: 1px solid #D7B3FF; color: #8E44AD; }
.result.depression { background: #F5F8FF; border: 1px solid #B3C6FF; color: #2C3E50; }
.result.normal { background: #F2FFF5; border: 1px solid #B3FFCC; color: #27AE60; }
.result.personality\ disorder { background: #FFF9F2; border: 1px solid #FFD9B3; color: #E67E22; }
.result.stress { background: #FFFDF2; border: 1px solid #FFE6B3; color: #D35400; }
.result.suicidal { background: #FFF0F5; border: 1px solid #FFB3D9; color: #C2185B; }