@import url('variables.css');
@import url('components.css');
@import url('tree.css');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--rnp-dark) 0%, var(--rnp-primary) 100%);
    color: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header__subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 12px;
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 0;
    background: white;
    border-bottom: 2px solid var(--gray-200);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tab {
    padding: 14px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-500);
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.tab:hover {
    color: var(--rnp-primary);
}

.tab--active {
    color: var(--rnp-accent);
}

.tab--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rnp-accent);
    border-radius: 3px 3px 0 0;
}

/* Main Content */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
}

/* Panels */
.panel {
    display: none;
}

.panel--active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tree panel needs special sizing */
#panel-tree.panel--active {
    display: flex;
    flex-direction: column;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
