/* ===========================================
   SRT Gateway - Enterprise Edition
   Stylesheet
   =========================================== */

/* ----- CSS Variables ----- */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --bg-hover: #252c35;
    --bg-input: #0d1117;
    --border: #30363d;
    --border-light: #444c56;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-green: #3fb950;
    --accent-green-dim: rgba(63, 185, 80, 0.15);
    --accent-red: #f85149;
    --accent-red-dim: rgba(248, 81, 73, 0.15);
    --accent-orange: #d29922;
    --accent-orange-dim: rgba(210, 153, 34, 0.15);
    --accent-blue: #58a6ff;
    --accent-blue-dim: rgba(88, 166, 255, 0.15);
    --accent-purple: #a371f7;
    --accent-purple-dim: rgba(163, 113, 247, 0.15);
}

body[data-theme="light"] {
    --bg-primary: #e3e9f2;
    --bg-secondary: #e9eef6;
    --bg-card: #eff3f9;
    --bg-hover: #d7e0ee;
    --bg-input: #eff3f9;
    --text-primary: #1a2233;
    --text-secondary: #4e5d78;
    --text-muted: #6a7a95;
    --border: #c3cfdf;
    --accent-blue-dim: rgba(37, 99, 235, 0.12);
    --accent-green-dim: rgba(22, 163, 74, 0.06);
    --accent-orange-dim: rgba(234, 88, 12, 0.06);
    --accent-red-dim: rgba(220, 38, 38, 0.06);
    --accent-purple-dim: rgba(147, 51, 234, 0.06);
}

/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    height: 100vh;
    /*line-height: 1.5;*/
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ----- Navigation ----- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: #0070ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo svg {
    width: 20px;
    height: 20px;
    color: white;
}

.nav-title {
    font-weight: 600;
    font-size: 16px;
}

.nav-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    padding: 0;
}

.nav-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-green-dim);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-green);
}

.system-status .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ----- Main Content ----- */
.main {
    max-width: 1440px;
    min-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1300px) {
    .main {
        max-width: 100%;
        min-width: 0;
    }
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 12px;
}

