/* York IT Support / Adromeda – Dark IT Theme */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #0f172a;
    --card-bg: #020617;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --danger: #ef4444;
    --success: #22c55e;
    --border: #1f2933;
    --radius: 12px;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    flex: 1;
}

/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
}

.nav-logo-text-main {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nav-logo-text-sub {
    font-size: 12px;
    color: var(--muted);
}

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

.nav-links a {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--text);
}

/* HERO / CARDS */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 22px;
    margin-bottom: 26px;
}

.hero-main {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    padding: 22px 22px 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #a5f3fc;
    font-size: 11px;
    margin-bottom: 8px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.hero-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-title span {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border-color: rgba(191, 219, 254, 0.4);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
    border-color: #60a5fa;
}

.hero-meta {
    display: flex;
    gap: 18px;
    font-size: 11px;
    color: var(--muted);
}

.hero-meta span strong {
    color: var(--text);
}

/* right hero card */

.hero-side {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.45), rgba(15, 23, 42, 0.98));
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-side-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.hero-side-text {
    font-size: 12px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.hero-side-box {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 14px;
    padding: 10px 11px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    font-size: 12px;
    margin-bottom: 12px;
}

.hero-side-badge {
    font-size: 11px;
    color: #a5b4fc;
    margin-bottom: 4px;
}

.hero-side-steps {
    list-style: none;
    font-size: 12px;
    color: var(--muted);
}

.hero-side-steps li {
    margin-bottom: 4px;
}

/* content sections */

.section {
    margin-bottom: 26px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 18px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--muted);
}

/* cards & tables */

.card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table th {
    text-align: left;
    font-weight: 600;
    color: var(--muted);
}

/* badges */

.badge-status {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid transparent;
}

.badge-open {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(22, 163, 74, 0.08);
}

.badge-in-progress {
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.4);
    background: rgba(234, 179, 8, 0.08);
}

.badge-closed {
    color: #f97373;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}

/* forms */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.form-control label {
    color: #e5e7eb;
}

.form-control input,
.form-control textarea,
.form-control select {
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-size: 13px;
}

.form-control textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 11px;
    color: var(--muted);
}

/* alerts */

.alert {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
}

/* footer */

.footer {
    text-align: center;
    padding: 14px 0 6px;
    font-size: 11px;
    color: var(--muted);
}

/* Admin settings tabs */

.settings-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.settings-tab-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.settings-tab-btn.active {
    background: rgba(37, 99, 235, 0.18);
    color: var(--text);
    border-color: rgba(96, 165, 250, 0.8);
}

.settings-tab {
    display: none;
}

.settings-tab.active {
    display: block;
}

/* robots-style small text */
code.small {
    font-size: 11px;
}

/* responsive */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
