:root {
    --primary-color: #28a745;
    --secondary-color: #007bff;
    --background-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.header-content img {
    height: 40px;
    margin-right: 15px;
}

.header-content h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
}

.fixed-timer-container {
    position: fixed;
    top: 60px;
    width: 100%;
    background-color: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clear-note {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.timer-controls-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-arrow {
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-arrow:hover {
    transform: scale(1.1);
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #34495e;
    transition: color 0.3s ease;
}

.timer-action-buttons {
    display: flex;
    gap: 10px;
}

.timer-warning {
    color: #dc3545;
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

main {
    padding-top: 150px;
    padding-bottom: 80px;
    max-width: 900px;
    margin: 20px auto;
    padding-left: 20px;
    padding-right: 20px;
}

.form-container, .results-container {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

h2, h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.clear-section {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group-item {
    margin-bottom: 15px;
}

.likert-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 5px;
}

.likert-group input[type="radio"] {
    width: auto;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.score-breakdown table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.score-breakdown th, .score-breakdown td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.score-breakdown th {
    background-color: #f2f2f2;
}

.export-buttons {
    text-align: center;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.2rem;
    }
    .timer-row {
        flex-direction: column;
        gap: 15px;
    }
    .clear-note {
        margin-bottom: 5px;
    }
}
