body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px; /* Adjusted for mobile vertical view */
    box-sizing: border-box;
    margin-bottom: 20px; /* Space for mobile bottom */
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 1.3em;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.input-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
}

.input-section input[type="text"],
.input-section input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccd6e0;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-section input[type="text"]:focus,
.input-section input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    width: 100%;
    padding: 12px;
    background-color: #2ecc71; /* Green for primary action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
}

button:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
}

button.secondary-btn {
    background-color: #95a5a6; /* Grey for secondary actions */
    margin-top: 10px;
}

button.secondary-btn:hover {
    background-color: #7f8c8d;
}

.result-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px dashed #e0e0e0;
}

.flag-display {
    font-size: 2.2em;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 8px;
    display: inline-block;
    min-width: 150px;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Color classes for the flag */
.flag-display.green-flag {
    background-color: #e6ffe6;
    color: #28a745;
    border: 1px solid #28a745;
}

.flag-display.yellow-flag {
    background-color: #fffacd;
    color: #ffc107;
    border: 1px solid #ffc107;
}

.flag-display.red-flag {
    background-color: #ffe6e6;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.score-display {
    margin-top: 10px;
    font-size: 1.1em;
    color: #666;
}

.saved-clients-section {
    margin-top: 30px;
    border-top: 1px dashed #e0e0e0;
    padding-top: 20px;
}

.saved-clients-list ul {
    list-style: none;
    padding: 0;
}

.saved-client-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-client-item span {
    font-weight: bold;
    color: #34495e;
    font-size: 1.05em;
}

.saved-client-item .flag {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

.saved-client-item .flag.green-flag {
    background-color: #d4edda;
    color: #155724;
}
.saved-client-item .flag.yellow-flag {
    background-color: #fff3cd;
    color: #856404;
}
.saved-client-item .flag.red-flag {
    background-color: #f8d7da;
    color: #721c24;
}

.clear-all-btn {
    margin-top: 20px;
}

#savedClientsList p {
    text-align: center;
    color: #888;
    font-style: italic;
}