/* Styling for Grades */
.grade-a {
    color: #4caf50; /* Green for A and B */
}

.grade-b {
    color: #ffeb3b; /* Yellow for C */
}

.grade-c {
    color: #f44336; /* Red for D and F */
}

/* Other styles remain unchanged */
body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: #2c2c2c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 90%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
    border: 2px solid #444;
    border-radius: 5px;
    outline: none;
    background-color: #3a3a3a;
    color: #f0f0f0;
}

input[type="text"]:focus {
    border-color: #e50914;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #d40712;
}

/* Spinner for loading */
.spinner {
    margin: 20px auto;
    font-size: 1.2em;
    color: #e50914;
}

/* Error Message Styling */
.error-message {
    color: #ff4c4c;
    font-size: 1.2rem;
    margin: 20px auto;
    text-align: center;
}

/* Section Styling */
section#sentimentSection,
section#defaultResultSection,
section#recommendationsSection {
    margin-top: 20px;
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

section p,
section div {
    margin: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    input[type="text"], button {
        width: 100%;
        margin: 5px 0;
    }

    button {
        font-size: 1em;
    }
}
