/* assets/style.css - BitradeX Universal Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #000000;
    --accent-color: #00d4ff;       /* BitradeX Cyan */
    --accent-gold: #f7931a;        /* Bitcoin Orange */
    --accent-green: #198754;       /* Profit Green */
    --accent-red: #dc3545;         /* Loss Red */
    --bg-dark: #12141b;            /* Hitam Abu-abu */
    --bg-darker: #1a1e26;
    --bg-card: #ffffff;
    --bg-card-light: #f8f9fa;
    --text-main: #ffffff;
    --text-muted: #000000;         /* Semuanya harus kentara */
    --text-dim: #000000;
    --text-card-main: #000000;
    --nav-bg: #12141b;

    --border-color: rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.15);
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Force white background on common cards */
.card, .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-card-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .card p, .card span:not(.badge), .card td, .card th {
    color: var(--text-card-main) !important;
}

.card .text-white, .card .text-muted {
    color: var(--text-card-main) !important;
}

.card .text-muted {
    color: #000000 !important;
}


/* Animated background particles effect */
.bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(247, 147, 26, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Premium Card Styles */
.card-premium {
    background: var(--bg-card) !important;
    border: none;
    border-radius: 20px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.card-premium:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Navbar Tuning */
.navbar-dark-premium {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-dark-premium .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: var(--transition);
}

.navbar-dark-premium .nav-link:hover, 
.navbar-dark-premium .nav-link.active {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}


/* Text Gradients */
.text-gradient-cyan {
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Modernization */
.btn-premium {
    background: linear-gradient(135deg, #00d4ff, #0099bb);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    color: #000;
}

.btn-premium-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    padding: 10px 24px;
    transition: var(--transition);
}

.btn-premium-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
}

/* Table Dark Tweak */
.table-premium {
    color: var(--text-main) !important;
}

.table-premium thead th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.table-premium td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    padding: 16px;
    font-size: 0.9rem;
}

.text-muted {
    color: #000000 !important;
}

.small, small {
    color: #000000 !important;
}


/* Auth Cards */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0a0c10 0%, #060810 100%);
}

.auth-card {
    background: rgba(15, 18, 24, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(20px);
}

/* Utility to fix white cards from screenshots */
.no-border { border: none !important; }
.bg-glass { background: var(--bg-card) !important; backdrop-filter: blur(15px) !important; color: white !important; }
.bg-dark-premium { background: var(--bg-darker) !important; }

/* Input Customization */
.form-control-premium {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    padding: 12px 18px;
}

.form-control-premium:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
    color: white;
}

/* Custom Table Row Hover */
.table-premium tbody tr:hover {
    background: rgba(0, 212, 255, 0.06) !important;
}

.table-premium td {
    color: #ffffff !important; /* Ensure primary data is always white */
}


.badge-premium {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}