:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f4f6f9;
    --text-color: #333;
    --positive: #27ae60;
    --negative: #c0392b;
    --neutral: #7f8c8d;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 60px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: var(--primary-color);
    text-align: center;
}

h2 {
    margin-top: 30px;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 14px;
    margin-top: 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.error {
    color: var(--negative);
    text-align: center;
    margin-bottom: 15px;
}

.sentence-box {
    font-size: 1.4rem;
    padding: 25px;
    background: #eef2f5;
    border-radius: 6px;
    margin: 30px 0;
    direction: rtl;
    text-align: right;
    font-family: Arial, sans-serif;
}

.progress {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.sentiment-buttons {
    display: flex;
    gap: 15px;
}

.sentiment-buttons button {
    flex: 1;
}

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

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

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

.btn-positive:hover {
    background-color: #1e8449;
}

.btn-neutral:hover {
    background-color: #707b7c;
}

.btn-negative:hover {
    background-color: #922b21;
}

.cta {
    text-align: center;
    margin-top: 40px;
}

.cta a {
    text-decoration: none;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
}
form {
    text-align: right; /* Aligns content to the right for RTL */
}

button[type="submit"] {
    display: inline-block;  /* Keep it inline with text */
    margin: 15px 0 0 0;     /* spacing from previous element */
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

/* input radio in the form align */


input[type="radio"] {
    margin-left: 10px; /* spacing between radio and label */
    transform: scale(1.2); /* make radio button larger */
    appearance: none;
    width: 2px;
    height: 2px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

/* input radio in form on select */
input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}