@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@500;600;700&display=swap');

/* ============================================================================
   GLOBAL STYLES & RESET
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 50% 10%, #0d1117, #05070a, #020305);
    color: #e2e8f0;
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    padding-left: 240px; /* Offset for fixed sidebar */
    padding-bottom: 90px;  /* Offset for floating footer */
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 1.5px;
    color: #00f2fe !important;
}

.glow-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 50%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================================
   LAYOUT COMPONENTS & CARDS
   ============================================================================ */
.hud-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.hud-card:hover {
    border-color: #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

.hud-title {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hud-value {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 6px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.deal-card {
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.deal-card:hover {
    transform: translateY(-3px);
}

.deal-card-hot {
    border-color: rgba(244, 63, 94, 0.6);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.col-pair {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.col-pair > div {
    flex: 1;
    min-width: 250px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 10px 0;
}

/* ============================================================================
   BADGES & ALERTS
   ============================================================================ */
.badge-red {
    background: rgba(244, 63, 94, 0.15);
    color: #ff4b72;
    border: 1px solid #ff4b72;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
}

.badge-cyan {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border: 1px solid #00f2fe;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid;
    font-weight: 600;
}

.alert-info { background: rgba(0, 242, 254, 0.1); border-color: #00f2fe; color: #00f2fe; }
.alert-warn { background: rgba(244, 63, 94, 0.1); border-color: #ff4b72; color: #ff4b72; }
.alert-ok   { background: rgba(0, 255, 136, 0.1); border-color: #00ff88; color: #00ff88; }

/* ============================================================================
   BUTTONS & INPUTS
   ============================================================================ */
.input-type {
    color: #00f2fe !important;
    background: #0b132b !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    border-radius: 10px !important;
    padding: 10px 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

.input-type option {
    background: #0b132b;
    color: #00f2fe;
}

.input-type:focus {
    border-color: #00f2fe !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3) !important;
}

.btn-cyber {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #020305;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-cyber:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.8);
    transform: scale(1.02);
}

.btn-sm { padding: 8px 16px; font-size: 0.75rem; }
.btn-hot { background: linear-gradient(135deg, #ff4b72, #ff6b9d); color: #fff; }

.nav-btn {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-align: left;
    transition: all 0.2s;
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.textarea-cyber {
    background: #0b132b;
    color: #e2e8f0;
    border: 2px solid #00f2fe;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
    resize: vertical;
    outline: none;
}

.textarea-cyber:focus { box-shadow: 0 0 10px rgba(0, 242, 254, 0.3); }

/* ============================================================================
   DATATABLES & CRM STYLING
   ============================================================================ */
.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cyber-table th {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 242, 254, 0.3);
}

.cyber-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.cyber-table tr:hover td {
    background: rgba(0, 242, 254, 0.03);
    color: #fff;
}

/* ============================================================================
   SIDEBAR & FOOTER
   ============================================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    border-right: 1px solid rgba(0, 242, 254, 0.2);
    padding: 20px;
    overflow-y: auto;
    z-index: 50;
}

.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 7, 10, 0.95);
    border-top: 1px solid rgba(0, 242, 254, 0.4);
    backdrop-filter: blur(12px);
    padding: 12px 8px;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 95%;
    max-width: 1600px;
}

.footer-item { color: #94a3b8; font-size: 0.7rem; line-height: 1.4; }
.footer-h { color: #00f2fe; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* Responsive adjustments */
@media(max-width: 900px) {
    body { padding-left: 0; }
    .sidebar { position: relative; width: 100%; height: auto; }
    div[style*="margin-left:260px"] { margin-left: 0 !important; }
}

@media(max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-item, .footer-h { font-size: 0.6rem; }
}