/* Shared design tokens for JiraBoard UI */
:root {
    /* Background */
    --bg-canvas: #f7f8fa;
    --bg-surface: #ffffff;
    --bg-muted: #f3f4f6;
    --bg-hover: #eef0f3;
    --bg-active: #e8ebef;
    /* Text */
    --text: #1f2328;
    --text-secondary: #424a53;
    --text-muted: #6b7280;
    --text-dim: #9ca3af;
    /* Borders */
    --border: #e3e5e8;
    --border-strong: #d0d4d8;
    /* Accent */
    --accent: #2563eb;
    --accent-soft: #eef2ff;
    /* Status colors */
    --green: #22c55e;
    --green-soft: #e8f7ee;
    --yellow: #eab308;
    --yellow-soft: #fdf6e3;
    --red: #ef4444;
    --red-soft: #fdecec;
    --grey: #9ca3af;
    --grey-soft: #f1f2f4;
       /* Shadows */
    --shadow: rgba(16, 24, 40, 0.06);
    --shadow-lg: rgba(16, 24, 40, 0.12);
    /* SLA */
    --bg-ok: #e6ffed;
    --bg-warning: #fff7e6;
    --bg-breach: #ffe6e6;
    /* Priority */
    --bg-p-highest: #7f1d1d;
    --bg-p-high: #f97316;
    --bg-p-medium: #fde68a;
    --bg-p-low: #86efac;
    --bg-p-lowest: #bfdbfe;
    --bg-p-default: #e5e7eb;
    --text-p-highest: #fff;
    --text-p-high: #fff;
    --text-p-medium: #5f370e;
    --text-p-low: #14532d;
    --text-p-lowest: #1e3a8a;
    --text-p-default: #111827;
    /* Tags */
    --bg-tag: #eef2ff;
    --text-tag: #1e3a8a;
    /* Misc */
    --bg-subtle: #f4f4f4;
    --bg-overlay: rgba(0,0,0,0.55);
    --bg-code: #1e1e1e;
    --text-code: #d4d4d4;
    --bg-loading: #edf2f7;
    --bg-progress: #e2e8f0;
    --bg-dropdown: #ffffff;
    --border-light: #e2e8f0;
    --border-btn: #cbd5e1;
    --text-disabled: #94a3b8;
    --text-link: #065fd4;
    --text-json-key: #065fd4;
    --text-json-string: #9f1239;
    --text-json-number: #0b7285;
    --text-json-bool: #2563eb;
    /* Admin extras */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --border-color: #cbd5e1;
    --primary-blue: #3b82f6;
    --primary-hover: #2563eb;
    --success-teal: #14b8a6;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    /* Spacing */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    /* Transitions */
    --transition-fast: 150ms ease;
    /* Aliases for Admin compatibility */
    --text-primary: var(--text);
    --text-secondary: var(--text-secondary);
    --text-muted: var(--text-muted);
}

.dark {
    --bg-canvas: #0f1117;
    --bg-surface: #16181e;
    --bg-muted: #1d2027;
    --bg-hover: #242830;
    --bg-active: #2a2f38;
    --text: #e7e9ee;
    --text-secondary: #b3b9c2;
    --text-muted: #8b919c;
    --text-dim: #636a75;
    --border: #262b34;
    --border-strong: #333a45;
    --accent: #4f8ef7;
    --accent-soft: #1e2a44;
    --green: #3dd68c;
    --green-soft: #123424;
    --yellow: #e8c23d;
    --yellow-soft: #33290d;
    --red: #f0666b;
    --red-soft: #3a1418;
    --grey: #6b7280;
    --grey-soft: #22262e;
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    /* SLA */
    --bg-ok: #064e3b;
    --bg-warning: #78350f;
    --bg-breach: #7f1d1d;
    /* Priority */
    --bg-p-medium: #a16207;
    --bg-p-low: #15803d;
    --bg-p-lowest: #1e40af;
    --bg-p-default: #334155;
    --text-p-medium: #fde68a;
    --text-p-low: #86efac;
    --text-p-lowest: #bfdbfe;
    --text-p-default: #e2e8f0;
    /* Tags */
    --bg-tag: #1e3a5f;
    --text-tag: #93c5fd;
    /* Misc */
    --bg-subtle: #1e293b;
    --bg-overlay: rgba(0,0,0,0.75);
    --bg-code: #0a0a1a;
    --text-code: #d4d4d4;
    --bg-loading: #1e293b;
    --bg-progress: #334155;
    --bg-dropdown: #1e293b;
    --border-light: #1e293b;
    --border-btn: #475569;
    --text-disabled: #475569;
    --text-link: #60a5fa;
   --text-json-key: #93c5fd;
    --text-json-string: #fabfa8;
    --text-json-number: #7dd3f0;
    --text-json-bool: #93c5fd;
    /* Admin extras */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;
    --primary-blue: #60a5fa;
    --primary-hover: #3b82f6;
    --success-teal: #2dd4bf;
    --warning-orange: #fbbf24;
    --danger-red: #f87171;
}

/* Base reset */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    margin: 0;
    padding: 24px;
    background: var(--bg-canvas);
    color: var(--text);
    line-height: 1.5;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation buttons */
.nav-btn {
    padding: 7px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    cursor: pointer;
}
.nav-btn:hover { background: var(--bg-hover); }
.nav-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Buttons */
.btn-primary {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

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

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px var(--shadow);
}

/* Panels */
.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(15,23,42,.08);
}

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid var(--border); text-align: left; }
th { background: var(--bg-muted); font-weight: 600; }
tr:hover { background: var(--bg-hover); }

/* Form elements */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea,
select {
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.topbar h1 { font-size: 1.4rem; margin: 0; font-weight: 600; }
.nav-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Loading & error states */
.loading { display: none; color: var(--text-muted); }
.error { display: none; color: var(--red); background: var(--red-soft); padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.success { color: var(--green); background: var(--green-soft); padding: 12px; border-radius: 8px; margin-bottom: 16px; }

/* Utility */
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.text-muted { color: var(--text-muted); }

.logout-container {
    text-align: center;
    color: white;
}

.logout-container p {
    margin-bottom: 20px;
    font-size: 18px;
}

.logout-container a {
    color: white;
    text-decoration: underline;
}


.register-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.register-header p {
    color: #999;
    font-size: 14px;
}