:root {
    --primary-blue: #0a4cbd;
    --medical-teal: #00b894;
    --dark-bg: #f8fafc;
    --text-main: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.4;
}

.container { max-width: 850px; margin: 0 auto; padding: 0 1.5rem; }

header {
    background: white; border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0; position: sticky; top: 0; z-index: 100;
}

.logo { font-size: 1.1rem; font-weight: 800; color: var(--primary-blue); text-decoration: none; }
.logo span { color: var(--medical-teal); }

.hero { padding: 2rem 0; text-align: center; }
.hero h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.hero p { font-size: 0.85rem; color: var(--text-muted); max-width: 450px; margin: 0 auto 1.25rem; }

.search-container {
    max-width: 600px; margin: 0 auto; background: white; padding: 3px;
    border-radius: 6px; display: flex; border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.search-input { flex: 1; border: none; padding: 6px 12px; font-size: 14px; outline: none; }
.search-button {
    background: var(--primary-blue); color: white; border: none; padding: 0 14px;
    border-radius: 4px; font-weight: 600; font-size: 12px; cursor: pointer;
}

.atc-accordion { margin: 1.5rem auto; display: flex; flex-direction: column; gap: 8px; }

.accordion-item {
    background: white; border-radius: 6px; border: 1px solid var(--border-color);
    transition: all 0.1s; cursor: pointer;
}

.accordion-header { padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 12px; }

.atc-badge {
    background: var(--primary-blue); color: white; min-width: 25px; height: 25px;
    display: flex; align-items: center; justify-content: center; border-radius: 4px;
    font-weight: 700; font-size: 11px;
}

.atc-title { font-weight: 600; font-size: 13px; color: #1f2937; }

.toggle-icon {
    width: 20px; height: 20px; background: #f3f4f6; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 14px;
}

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; padding: 0 14px; }
.accordion-item.active .accordion-content { max-height: 5000px; padding-bottom: 8px; border-top: 1px solid #f3f4f6; }

.sub-header { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sub-header:hover { opacity: 0.8; }
.atc-badge.small { background: #9ca3af; min-width: 45px; height: 18px; font-size: 10px; border-radius: 3px; }
.atc-title.small { font-weight: 500; font-size: 12px; }

.toggle-mini { font-size: 14px; color: #9ca3af; margin-left: auto; }

.sub-content { padding-left: 55px; max-height: 0; overflow: hidden; transition: max-height 0.2s; }
.sub-item.active .sub-content { max-height: 2000px; padding-bottom: 4px; }

.nested-list { list-style: none; border-left: 1px solid #e5e7eb; padding-left: 10px; margin-top: 2px; }
.nested-list li { padding: 2px 0; }
.nested-list a { text-decoration: none; color: #6b7280; font-size: 12px; }
.nested-list a strong { color: #374151; }

.view-all-btn {
    display: inline-flex; align-items: center; gap: 3px; background: #f3f4f6;
    padding: 3px 8px; border-radius: 4px; text-decoration: none;
    color: var(--primary-blue); font-weight: 600; font-size: 11px; margin-top: 8px;
}

footer { padding: 2rem 0; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.8rem; color: #9ca3af; }
