/* 
   Universal Digital Asset & System Component Library
   Core Design System
*/

:root {
    --primary: #1F2937;
    --secondary: #64748B;
    --accent: #06B6D4;
    --bg: #FFFFFF;
    --border: #E5E7EB;
    --sidebar-bg: #F9FAFB;
    --text-main: #111827;
    --text-muted: #4B5563;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    height: 64px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-source {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-source:hover {
    opacity: 0.9;
}

.main-layout {
    display: flex;
    flex: 1;
}

/* Sidebar */
aside {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #F3F4F6;
    color: var(--primary);
}

.nav-link.active {
    background: #E0F2FE;
    color: var(--accent);
    font-weight: 500;
}

/* Content */
main {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 900px;
}

.content-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

/* Technical Elements */
code {
    font-family: var(--font-mono);
    background: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.tech-table th {
    text-align: left;
    background: var(--sidebar-bg);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary);
}

.tech-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.5rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-sans);
}

button.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }
    aside {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    main {
        padding: 2rem;
    }
}
