* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.date-display {
    color: #666;
    font-size: 14px;
}

.status-bar {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1565c0;
}

.status-bar.warning {
    background: #fff3e0;
    color: #e65100;
}

.main-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.general-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.general-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.question-group {
    margin-bottom: 25px;
}

.question-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.question-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.question-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.logged-responses {
    margin-top: 10px;
    padding: 12px;
    background: #fafafa;
    border-left: 3px solid #9e9e9e;
    border-radius: 4px;
}

.logged-responses textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    background: #fafafa;
    color: #666;
    resize: vertical;
}

.logged-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #45a049;
}

.submit-btn:active {
    transform: scale(0.98);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.error-message h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.error-message p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.error-message code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Checkbox styling */
.checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-wrapper:hover {
    background: #f0f0f0;
    border-color: #4CAF50;
}

.question-checkbox {
    margin: 0;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.checkbox-wrapper label {
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #555;
    margin: 0;
    flex: 1;
}

/* Slider styling */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.question-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ff4444 0%, #ffaa00 50%, #4CAF50 100%);
    cursor: pointer;
}

.question-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.question-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.question-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.question-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.slider-value {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    min-width: 50px;
    text-align: center;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}
