/**
 * StationHQ Modern — WHMCS client theme (Twenty-One child)
 * @version 2.0.3
 */

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

:root {
    --shq-accent-cyan: #22d3ee;
    --shq-accent-blue: #3b82f6;
    --shq-accent-blue-dark: #2563eb;
    --shq-text: #0f172a;
    --shq-muted: #64748b;
    --shq-radius: 18px;
    --shq-radius-sm: 12px;
    --shq-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shq-gradient: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(165deg, #eef2ff 0%, #f8fafc 55%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--shq-text);
}

#header,
.header,
header.header {
    position: relative;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.main-navbar-wrapper,
#header .navbar,
.header .navbar {
    position: relative;
    z-index: 1051;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Keep nav dropdowns above sidebar cards */
.navbar .dropdown-menu,
.navbar-nav .dropdown-menu,
.nav-item.dropdown .dropdown-menu {
    z-index: 1060 !important;
}

#main-body .sidebar,
.card-sidebar {
    position: relative;
    z-index: 1;
}

.navbar-brand img {
    max-height: 36px;
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--shq-muted);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--shq-accent-blue);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    background: rgba(59, 130, 246, 0.1);
}

.primary-content {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.page-head h1,
.page-head h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-head h1::after,
.page-head h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: #f97316;
}

.btn-primary,
.btn-success {
    border: none;
    background: var(--shq-gradient);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover {
    opacity: 0.92;
    background: var(--shq-gradient);
    border: none;
}

.btn-default,
.btn-outline-primary {
    border-radius: 999px;
    font-weight: 500;
}

.card,
.panel,
.panel-default {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--shq-radius-sm);
    box-shadow: var(--shq-shadow);
    overflow: hidden;
}

.card-header,
.panel-heading {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.list-group-item {
    border-color: #f1f5f9;
}

.list-group-item.active {
    background: var(--shq-gradient);
    border-color: transparent;
}

.tiles .tile,
.home-tiles .tile {
    border-radius: var(--shq-radius-sm);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shq-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tiles .tile:hover,
.home-tiles .tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
}

.table-container,
.table {
    border-radius: var(--shq-radius-sm);
}

.table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--shq-muted);
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.label,
.badge {
    border-radius: 999px;
    font-weight: 600;
}

.footer,
#footer {
    border-top: 1px solid #e2e8f0;
    color: var(--shq-muted);
    background: transparent;
}

.form-control {
    border-radius: 10px;
    border-color: #e2e8f0;
}

.form-control:focus {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.alert {
    border-radius: var(--shq-radius-sm);
}

@media (max-width: 767px) {
    .page-head h1::after,
    .page-head h2::after {
        width: 36px;
    }
}
