/* ── AuthSite Custom Styles ─────────────────────────────────────── */

:root {
    --as-primary: #4f46e5;
    --as-primary-hover: #4338ca;
    --as-secondary: #7c3aed;
    --as-accent: #06b6d4;
    --as-bg: #f8fafc;
    --as-surface: #ffffff;
    --as-surface-alt: #f1f5f9;
    --as-text: #1e293b;
    --as-text-muted: #64748b;
    --as-border: #e2e8f0;
    --as-success: #10b981;
    --as-danger: #ef4444;
    --as-warning: #f59e0b;
    --as-gradient: linear-gradient(135deg, var(--as-primary), var(--as-secondary));
}

body {
    background-color: var(--as-bg);
    color: var(--as-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Navbar ──────────────────────────────────────────────────────
 */
.navbar-brand {
    font-weight: 700;
    background: var(--as-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Cards ───────────────────────────────────────────────────────
 */
.card {
    border: 1px solid var(--as-border);
    border-radius: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: var(--as-surface-alt);
    border-bottom: 1px solid var(--as-border);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* ── Service cards ───────────────────────────────────────────────
 */
.service-card {
    border-left: 4px solid var(--as-primary);
    min-height: 200px;
}

.service-card.subscribed {
    border-left-color: var(--as-success);
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--as-primary);
}

/* ── Connection cards ────────────────────────────────────────────
 */
.connection-card {
    border-left: 4px solid var(--as-accent);
}

.connection-card.connected {
    border-left-color: var(--as-success);
}

.connection-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.connection-status.active {
    background-color: var(--as-success);
}

.connection-status.expired {
    background-color: var(--as-danger);
}

.connection-status.disconnected {
    background-color: var(--as-text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────────
 */
.btn-primary {
    background: var(--as-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--as-primary);
    color: var(--as-primary);
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: var(--as-primary);
    border-color: var(--as-primary);
}

/* ── Hero Section ────────────────────────────────────────────────
 */
.hero {
    background: var(--as-gradient);
    color: white;
    padding: 5rem 0;
    border-radius: 0 0 2rem 2rem;
}

.hero h1 {
    font-weight: 800;
    font-size: 3rem;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ── Dashboard stat cards ────────────────────────────────────────
 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--as-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    color: var(--as-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ── Sidebar ─────────────────────────────────────────────────────
 */
.sidebar-nav .nav-link {
    color: var(--as-text);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: background 0.15s;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--as-surface-alt);
}

.sidebar-nav .nav-link.active {
    background-color: var(--as-primary);
    color: white;
}

/* ── Forms ────────────────────────────────────────────────────────
 */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--as-border);
    padding: 0.6rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ── Misc ────────────────────────────────────────────────────────
 */
.badge-role {
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--as-border);
}

.page-header h1 {
    font-weight: 700;
    font-size: 1.75rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--as-text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
