:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --accent-glow: rgba(88, 166, 255, 0.25);
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: #30363d;
    --card-radius: 12px;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Coming Soon Landing Page */
.landing-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav-fixed {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
}

.login-btn-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(88, 166, 255, 0.4);
    border-radius: 50px;
    color: #f0f6fc;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(88, 166, 255, 0.2);
}

.login-btn-top:hover {
    background: rgba(33, 40, 52, 0.95);
    border-color: #79c0ff;
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 25px rgba(88, 166, 255, 0.45), 0 0 18px rgba(88, 166, 255, 0.35);
}

.landing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.12) 0%, rgba(13, 17, 23, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

.landing-hero {
    animation: floatHero 6s ease-in-out infinite;
}

.landing-title {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #79c0ff 30%, #d2a8ff 65%, #58a6ff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    filter: drop-shadow(0 0 35px rgba(88, 166, 255, 0.4));
}

.landing-divider {
    height: 3px;
    width: 80px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(90deg, transparent, #58a6ff, #bc8cff, transparent);
    border-radius: 2px;
    animation: beamExpand 4s ease-in-out infinite;
}

.landing-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    color: #c9d1d9;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    animation: fadeInSub 1.2s ease-out;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes beamExpand {
    0%, 100% { width: 60px; opacity: 0.5; }
    50% { width: 140px; opacity: 1; }
}

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

.landing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    text-align: left;
}

.feature-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
}

.feature-icon {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.footer-clean {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.admin-link {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.admin-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* Login Page */
.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #0d1117;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #0d1117;
}

.btn-danger {
    background-color: rgba(248, 81, 73, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--danger);
    color: #ff7b72;
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--success);
    color: #56d364;
}

/* Admin Dashboard */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Metric Cards Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Terminal Hero Card */
.terminal-cta-card {
    background: linear-gradient(145deg, #161b22, #1b222c);
    border: 1px solid #388bfd44;
    border-radius: var(--card-radius);
    padding: 2.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.terminal-cta-info {
    max-width: 650px;
}

.terminal-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.terminal-cta-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.btn-terminal {
    background: #238636;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(35, 134, 54, 0.4);
    border: none;
}

.btn-terminal:hover {
    background: #2ea043;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 160, 67, 0.5);
}

/* Status List */
.status-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
}

.status-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th, .status-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.status-table th {
    color: var(--text-secondary);
    font-weight: 600;
}

.status-table tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill-ok {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid #238636;
}

.status-pill-warn {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
    border: 1px solid #9e6a03;
}

/* Terminal Page */
.terminal-page-body {
    overflow: hidden;
    height: 100vh;
}

.terminal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.terminal-frame-container {
    flex: 1;
    width: 100%;
    height: calc(100vh - 65px);
    background: #000000;
}

.terminal-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
