/* public/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #333;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: white;
}

/* Splash Screen */
.splash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.logo-container h1 {
    font-size: 48px;
    color: #007AFF;
    margin-bottom: 10px;
}

.splash-actions {
    margin-top: 60px;
}

.splash-actions p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.back-btn {
    text-decoration: none;
    color: #007AFF;
    font-size: 24px;
}

.user-icon {
    font-size: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.login-form {
    padding: 30px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0051D5;
}

/* Navigation Grid */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
}

.nav-card {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.2s;
}

.nav-card:hover {
    transform: scale(1.02);
    background-color: #f0f0f0;
}

.nav-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.nav-card h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.nav-card p {
    font-size: 12px;
    color: #666;
}

/* Welcome Section */
.welcome-section {
    padding: 20px;
    background-color: #E8F4FD;
    text-align: center;
}

.welcome-section h3 {
    margin-bottom: 5px;
}

/* Symptom Form */
.symptom-form {
    padding: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    margin-bottom: 15px;
    color: #007AFF;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: 500;
}

/* Slider */
.slider {
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

.slider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #007AFF;
    border-radius: 50%;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-top: 0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* Links */
.link-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.link-text a {
    color: #007AFF;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 400px) {
    .container {
        max-width: 100%;
    }
}
/* Add to existing styles.css */

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.logout-link {
    color: #007AFF;
    text-decoration: none;
    font-size: 16px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Update header to accommodate logout link */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

