/* Kytran System Operations — Base Styles */

/* Reset & Fonts */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

/* ── Navigation ── */
.ksm-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ksm-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sysops-accent, #2563eb);
}

.ksm-nav-brand i {
    font-size: 1.25rem;
}

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

.ksm-nav-user {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ksm-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ksm-nav-link:hover {
    color: #e2e8f0;
    background: #334155;
}

/* ── Main Content ── */
.ksm-main {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ── Flash Messages ── */
.ksm-flash-container {
    margin-bottom: 16px;
}

.ksm-flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.ksm-flash-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #86efac;
}

.ksm-flash-error,
.ksm-flash-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #fca5a5;
}

.ksm-flash-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #fcd34d;
}

.ksm-flash-info {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--sysops-accent, #2563eb);
    color: var(--sysops-accent-bright, #3b82f6);
}

/* ── Auth Pages ── */
.ksm-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 20px;
}

.ksm-auth-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ksm-auth-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sysops-accent, #2563eb);
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ksm-auth-card p {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* ── Forms ── */
.ksm-form-group {
    margin-bottom: 16px;
}

.ksm-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}

.ksm-form-group input {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ksm-form-group input:focus {
    outline: none;
    border-color: var(--sysops-accent, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ── Buttons ── */
.ksm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.ksm-btn-primary {
    width: 100%;
    background: var(--sysops-accent, #2563eb);
    color: #0f172a;
    margin-top: 8px;
}

.ksm-btn-primary:hover {
    background: var(--sysops-accent-bright, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ksm-nav {
        padding: 0 16px;
    }

    .ksm-main {
        padding: 16px;
    }

    .ksm-auth-card {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .ksm-nav-user {
        display: none;
    }

    .ksm-auth-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
}
