@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');
:root { --primary-color: #2563eb; --secondary-color: #3b82f6; --accent-color: #10b981; --bg-color: #f8fafc; --card-bg: #ffffff; --text-main: #1e293b; --text-muted: #64748b; --danger: #ef4444; --shadow: 0 10px 15px -3px rgba(0,0,0,0.1); --radius: 12px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Hind Siliguri', 'Segoe UI', Roboto, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; padding: 20px; }
#app { max-width: 900px; margin: 0 auto; }
html,body{height:100%}body{display:flex;flex-direction:column;min-height:100vh}#app{flex:1;display:flex;flex-direction:column}main{flex:1}
header { text-align: center; margin-bottom: 40px; padding: 20px 0; }
header h1 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
header p { color: var(--text-muted); font-size: 1.1rem; }
.search-container { position: relative; margin-bottom: 25px; }
#symptomInput { width: 100%; padding: 18px 25px; border: 2px solid #e2e8f0; border-radius: var(--radius); font-size: 1.1rem; box-shadow: var(--shadow); transition: all 0.3s ease; outline: none; }
#symptomInput:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.suggestions-box { position: absolute; top: 110%; left: 0; width: 100%; background: white; border-radius: var(--radius); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); z-index: 100; max-height: 250px; overflow-y: auto; border: 1px solid #e2e8f0; }
.suggestion-item { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid #f1f5f9; transition: background 0.2s; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: #f1f5f9; color: var(--primary-color); }
.chip-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { background: var(--primary-color); color: white; padding: 8px 16px; border-radius: 50px; font-weight: 500; display: flex; align-items: center; gap: 8px; animation: fadeIn 0.3s ease; }
.chip span { cursor: pointer; font-size: 1.2rem; line-height: 1; }
.result-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.result-card { background: var(--card-bg); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--accent-color); transition: transform 0.3s ease; }
.result-card:hover { transform: translateY(-5px); }
.result-card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.3rem; display: flex; justify-content: space-between; }
.probability-tag { font-size: 0.8rem; background: #dcfce7; color: #166534; padding: 2px 10px; border-radius: 20px; }
.result-card p { margin-bottom: 10px; font-size: 0.95rem; }
.result-card strong { color: var(--text-main); display: block; margin-bottom: 2px; }
.disclaimer { margin-top: 50px; padding: 20px; background: #fff1f2; border-left: 5px solid var(--danger); border-radius: var(--radius); text-align: center; font-size: 0.9rem; color: #9f1239; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) {
    header h1 { font-size: 1.8rem; }
    .result-container { grid-template-columns: 1fr; }
}
.smart-footer{margin-top:auto;padding:20px;text-align:center;background:#1e293b;color:#e2e8f0;font-size:.9rem;border-top:3px solid #38bdf8;border-radius:12px 12px 0 0}
.smart-footer a{ color: inherit; text-decoration: none; }
