/* ==============================================
   WEBULL TRADING PLATFORM - CRITICAL STYLES
   Fallback CSS jika Tailwind CDN tidak berfungsi
   ============================================== */

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #09090b;
    color: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    background-color: #09090b;
    color: #ffffff;
    min-height: 100vh;
}

/* Critical Dark Theme Colors */
.bg-\[\#0a0a0a\], .bg-zinc-950 {
    background-color: #0a0a0a !important;
}

.bg-zinc-900 {
    background-color: #18181b !important;
}

.bg-zinc-800 {
    background-color: #27272a !important;
}

.text-white {
    color: #ffffff !important;
}

.text-zinc-400 {
    color: #a1a1aa !important;
}

.text-zinc-500 {
    color: #71717a !important;
}

.text-orange-500 {
    color: #f97316 !important;
}

.border-zinc-800 {
    border-color: #27272a !important;
}

/* Background Colors */
.bg-zinc-950 {
    background-color: #09090b;
}

.bg-zinc-900 {
    background-color: #18181b;
}

.bg-zinc-800 {
    background-color: #27272a;
}

.bg-zinc-700 {
    background-color: #3f3f46;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-green-500\/10 {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1);
}
.bg-orange-500\/10 {
    background-color: rgba(249, 115, 22, 0.1);
}

.bg-zinc-900\/50 {
    background-color: rgba(24, 24, 27, 0.5);
}

/* Text Colors */
.text-white {
    color: #ffffff;
}

.text-zinc-400 {
    color: #a1a1aa;
}

.text-zinc-500 {
    color: #71717a;
}

.text-zinc-300 {
    color: #d4d4d8;
}

.text-orange-500 {
    color: #f97316;
}

.text-green-500 {
    color: #22c55e;
}

.text-red-500 {
    color: #ef4444;
}

/* Border Colors */
.border-zinc-800 {
    border-color: #27272a;
}

.border-zinc-700 {
    border-color: #3f3f46;
}

.border-orange-500 {
    border-color: #f97316;
}
.border-green-500 {
    border-color: #22c55e;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-orange-500\/20 {
    border-color: rgba(249, 115, 22, 0.2);
}

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
/* Flexbox */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}
.space-y-8 > * + * {
    margin-top: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* Padding & Margin */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;}

.mr-3 {
    margin-right: 0.75rem;
}

/* Width & Height */
.w-full {
    width: 100%;
}

.w-4 {
    width: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-4 {
    height: 1rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}
.h-12 {
    height: 3rem;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}
.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-none {
    line-height: 1;
}

.leading-relaxed {
    line-height: 1.625;
}
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Border */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}
.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Z-index */
.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:hidden {
        display: none;
    }
}
/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Shadow */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-orange-500\/50 {
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.5);
}

/* Backdrop */
.backdrop-blur {
    backdrop-filter: blur(12px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Hover */
.hover\:bg-orange-600:hover {
    background-color: #ea580c;
}

.hover\:bg-zinc-800:hover {
    background-color: #27272a;
}

.hover\:bg-zinc-700:hover {
    background-color: #3f3f46;
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:text-orange-400:hover {
    color: #fb923c;
}

.hover\:border-orange-500\/50:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-1:focus {
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

.focus\:ring-orange-500:focus {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5);
}

/* Disabled */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

/* Gradient */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-zinc-950 {
    --tw-gradient-from: #09090b;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(9, 9, 11, 0));
}

.via-zinc-900 {
    --tw-gradient-stops: var(--tw-gradient-from), #18181b, var(--tw-gradient-to, rgba(24, 24, 27, 0));
}
.to-zinc-950 {
    --tw-gradient-to: #09090b;
}

.from-orange-500 {
    --tw-gradient-from: #f97316;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0));
}

.to-red-500 {
    --tw-gradient-to: #ef4444;
}

.from-orange-500\/10 {
    --tw-gradient-from: rgba(249, 115, 22, 0.1);
}

.to-blue-500\/10 {
    --tw-gradient-to: rgba(59, 130, 246, 0.1);
}

.via-transparent {
    --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Utilities */.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.w-1\.5 {
    width: 0.375rem;
}

.h-1\.5 {
    height: 0.375rem;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .sm\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
    .md\:mb-0 {
        margin-bottom: 0;
    }
    .md\:flex-row {
        flex-direction: row;
    }}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Sidebar Layout */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: #18181b;
    border-right: 1px solid #27272a;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    margin-left: 240px;
    flex: 1;
    background-color: #09090b;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background-color: #27272a;
    color: #ffffff;}

.sidebar-nav a.active {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-left: 3px solid #f97316;
}

.sidebar-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #27272a;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #27272a;
    color: #ffffff;
}

tr:hover td {
    background-color: rgba(39, 39, 42, 0.5);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;    border-radius: 9999px;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-warning {
    background-color: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

/* Button */
button,
.btn {
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Card Stats */
.stat-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.stat-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: #71717a;    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

.flex-col {
    flex-direction: column;
}

.min-w-max {
    min-width: max-content;
}

.max-h-64 {
    max-height: 16rem;
}
