:root {
    --primary-color: #007AFF;
    --secondary-color: #01A49A;
    --error-color: #ea4335;
    --neutral-color: #fbbc05;
    --text-color: #202124;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --outline: #c4c7c5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Sora", sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1rem 0;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.button-submit{
    fill: var(--primary-color);
    transition: fill 0.3s ease;
    cursor: pointer;
}

.button-submit:hover {
    fill: var(--secondary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s infinite ease-in-out;
}

.logo img {
    width: 70px;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.logo-icon {
    font-size: 1.8rem;
}

main {
    flex: 1;
    padding: 2rem 0;
}

.card {
    background-color: var(--card-color);
    border-radius: 30px;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--outline);
}

h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.textarea {
    width: 100%;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    resize: none;
    color: #333;
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.textarea::placeholder{
    color: #aaa;
}

.container-actions {
    display: flex;
    justify-content: space-between;
}

.radio-group-wrapper {
    margin-top: 16px;
    font-size: 0.875rem;
    position: relative;
}

.radio-group-wrapper legend {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0 8px;
    color: #333;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

input[type="radio"] {
    accent-color: var(--primary-color);
}

#submit-btn{
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results {
    display: none;
    margin-top: 2rem;
}

.result-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.result-value {
    word-break: break-word;
}

.sentiment-positive {
    color: var(--secondary-color);
}

.sentiment-neutral {
    color: var(--neutral-color);
}

.sentiment-negative {
    color: var(--error-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: auto;
}

@media (max-width: 600px) {
    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}