@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Purple/Cyberpunk Theme from PNG */
    --primary: #8b5cf6;
    /* Violet */
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #7c3aed;
    /* Darker Violet */
    --accent: #d8b4fe;
    /* Light Lavender */

    --bg-dark: #0f0720;
    /* Deep Purple Black */
    --bg-gradient-start: #1e1b4b;
    --bg-gradient-end: #312e81;

    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-main: #ffffff;
    --text-dim: #e2e8f0;
    --text-muted: #94a3b8;

    --border-glass: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(139, 92, 246, 0.4);

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Animation Tokens */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* Content above background */
}

html {
    background-color: #06030e;
    /* Deep dark base */
    min-height: 100%;
}

body {
    background: radial-gradient(circle at top left, #4c1d95 0%, #0f0720 100%);
    /* Lighter purple start, fades to dark */
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
}

/* Background Gradients/Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    /* Changed from -1 to 0 to sit above base background but below content */
    opacity: 0.6;
    /* Increased opacity */
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

.bg-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.bg-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4c1d95 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

/* Liquid/Glass Utilities */
.liquid-white {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.liquid-lilac {
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #d8b4fe;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

/* Sticky Footer */
.sticky-footer {
    margin-top: auto;
    width: 100%;
    background: rgba(15, 7, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-glass);
    z-index: 99;
}

/* Base Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3,
.brand-font {
    font-weight: 700;
    /* Outfit removed, using system font weight */
}

.gradient-text {
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    /* Pill shape as seen in PNG */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

/* Layout Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    /* Using Primary Purple */
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Force Font on Form Elements and Tables */
button,
input,
select,
textarea,
table,
th,
td {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Inputs */
input,
select,
textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Global Table Styling (from Dashboard) */
.v3-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.v3-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

.v3-table th {
    padding: 15px 25px;
    background: transparent;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    text-align: left;
}

.v3-table td {
    padding: 15px 25px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
}

.v3-table tr:last-child td {
    border-bottom: none;
}

.v3-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.ip-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', monospace;
    color: var(--accent);
    font-weight: 600;
}

.log-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-view {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
}