/* 
 * NexusAPI - Enterprise Design System & Styling
 * Dark Glassmorphism, Modern Dashboards & ID Print Styling
 */

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

:root {
    --accent: #0ea5e9;
    --accent-teal: #0f766e;
    --accent-glow: rgba(14, 165, 233, 0.35);
    --bg-dark: #090d16;
    --bg-surface: #0f172a;
    --card-bg: rgba(20, 28, 45, 0.75);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 10% 20%, #0d1527 0%, #080c14 90%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* AUTH BACKGROUND & CARD */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
    border-radius: 50%;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
    border-radius: 50%;
}

.auth-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    width: 100%;
    max-width: 760px;
    color: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.25);
    margin-top: 10px;
}

.form-control, .form-select {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1.5px solid var(--border-color) !important;
    color: #fff !important;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-control:focus, .form-select:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-glow) !important;
    color: #fff !important;
    outline: none;
}

label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.btn-auth {
    background: linear-gradient(135deg, #0ea5e9, #0f766e) !important;
    border: none;
    color: #fff;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    margin-top: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 10px 25px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.5);
    color: #fff;
}

.btn-otp {
    background: rgba(14, 165, 233, 0.12);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-otp:hover:not(:disabled) {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.toggle-btn {
    color: var(--accent);
    cursor: pointer;
    font-weight: 700;
    border-bottom: 1px dashed var(--accent);
    text-decoration: none;
    padding-bottom: 2px;
}

.toggle-btn:hover {
    color: #fff;
    border-color: #fff;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-top: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* DASHBOARD LAYOUT */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.nav-link-custom i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-link-custom:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-custom.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(15, 118, 110, 0.2));
    color: var(--accent);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.main-content {
    margin-left: 270px;
    flex: 1;
    padding: 30px;
    background: #090e1a;
    min-height: 100vh;
}

/* TOP NAVBAR */
.top-navbar {
    background: rgba(18, 26, 44, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.wallet-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    color: #a7f3d0;
    font-weight: 700;
    font-size: 14px;
}

.wallet-add-btn {
    background: #10b981;
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.wallet-add-btn:hover {
    background: #34d399;
}

/* STAT CARDS */
.stat-card {
    background: rgba(20, 28, 48, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

/* SERVICE TILES */
.service-card {
    background: rgba(22, 30, 50, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.btn-service {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 16px;
    width: 100%;
    transition: 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-service:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* TABLES */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(18, 24, 38, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.custom-table th {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-secondary);
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* CODE BLOCKS */
pre.code-block {
    background: #050811;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    overflow-x: auto;
}

/* PRINTABLE ID CARDS */
.id-card-preview {
    width: 420px;
    height: 260px;
    background: #fff;
    color: #000;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    margin: 15px auto;
    font-size: 11px;
}

.id-card-header {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: #fff;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
}
