@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #e58d8d76;
    color: #2b2b2b;
}

.hero {
    min-height: 100vh;
}

nav {
    background: #0693a2;
    width: 100%;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    margin-left: 20px;
    width: 70px;
    height: 64px;
}

.user-pic {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 30px;
    margin-right: 20px;
}

nav ul {
    width: 100%;
    text-align: right;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.sub-menu-wrap {
    position: absolute;
    top: 100%;
    right: 10%;
    width: 320px;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s;
    z-index: 1;
}

.sub-menu-wrap.open-menu {
    max-height: 400px;
}

.sub-menu {
    background: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info h3 {
    font-weight: 500;
}

.user-info img {
    width: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.sub-menu hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: #ccc;
    margin: 15px 0 10px;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #525252;
    margin: 12px 0;
}

.sub-menu-link p {
    width: 100%;
}

.sub-menu-link img {
    width: 40px;
    background-color: #e5e5e5;
    border-radius: 50%;
    padding: 8px;
    margin-right: 15px;
}

.sub-menu-link span {
    font-size: 22px;
}

/* --- Symptom checker --- */
.symptom-panel {
    max-width: 780px;
    margin: 50px auto;
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.symptom-panel h1 {
    font-size: 1.8rem;
    color: #0693a2;
    margin-bottom: 8px;
}

.symptom-panel p.subtitle {
    color: #666;
    margin-bottom: 25px;
}

.symptom-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.symptom-input:focus {
    border-color: #0693a2;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    max-height: 130px;
    overflow-y: auto;
}

.chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip:hover {
    background: #e0f4f5;
}

.chip.active {
    background: #0693a2;
    color: #fff;
    border-color: #0693a2;
}

.selected-symptoms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    min-height: 20px;
}

.selected-symptoms .chip.active {
    padding-right: 10px;
}

.selected-symptoms .chip.active::after {
    content: " ✕";
    margin-left: 6px;
}

.btn-check {
    margin-top: 10px;
    height: 48px;
    width: 100%;
    background: #40B3A2;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-check:hover {
    opacity: 0.9;
}

.btn-check:disabled {
    background: #b8c9c7;
    cursor: not-allowed;
}

#results {
    margin-top: 30px;
}

.result-card {
    background: #f7fbfb;
    border-left: 4px solid #0693a2;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.result-card .rank {
    font-weight: 700;
    color: #0693a2;
    margin-right: 8px;
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 14px;
}
