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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 30px;
}

.site-logo {
  max-height: 80px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 5px;
}

.status-text {
    font-size: 1rem;
    color: #27ae60;
    font-weight: 500;
}

/* Section Styles */
.section {
    margin-bottom: 25px;
}

.section h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
    background-color: #3498db;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mode Tab Styles */
.mode-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 3px;
    gap: 3px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.mode-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    font-size: 0.95rem;
}

.mode-tab.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.mode-tab input[type="radio"] {
    display: none;
}

/* Input Styles */
textarea, input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.btn-primary {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

.btn-primary:hover {
    background: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: rgba(39, 174, 96, 0.9);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background: rgba(149, 165, 166, 0.9);
    color: white;
}

.btn-secondary:hover {
    background: #95a5a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

.btn-danger:hover {
    background: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}


/* Search Mode Styles */
.search-mode.hidden {
    display: none;
}

/* Remedy Input Container */
.remedy-input-container {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.remedy-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remedy-suggestion-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Totality Styles */
.symptom-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.symptom-input-field {
    flex: 1;
    margin-bottom: 0;
}

.remove-symptom {
    padding: 8px 12px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.result-header h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Rubric Block Styles */
.rubric-block {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #3498db;
    position: relative;
}

.rubric-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.action-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: rgba(39, 174, 96, 0.9);
    color: white;
}

/* Remedy Tags */
.remedy-tag {
    display: inline-block;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 3px 6px;
    margin: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: rgba(39, 174, 96, 0.95);
}

.notification-error {
    background: rgba(231, 76, 60, 0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 10px;
    }
    .site-logo {
        max-height: 60px;
    }
    .main-header h1 {
        font-size: 2rem;
    }
    .section {
        margin-bottom: 20px;
    }
    .section h3 {
        font-size: 1.1rem;
    }
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    .button-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .mode-tabs {
        flex-direction: column;
    }
    .symptom-entry {
        flex-direction: column;
    }
    .rubric-actions {
        position: static;
        margin-bottom: 10px;
        justify-content: flex-start;
    }
}