/* Global Reset & Colors */
:root {
    --bg-dark: #020617;
    --bg-panel: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary: #3b82f6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --neon-glow: 0 0 10px rgba(59, 130, 246, 0.5);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- FIX 1: PADDING for Fixed Top Ticker --- */
.dashboard-wrapper, .main-content {
    padding-top: 60px; /* Ticker(40px) + 20px boşluk */
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 40px; /* Ticker'ın altından başla */
    bottom: 0;
    left: 0;
    width: 280px;
    background: var(--bg-panel);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 1rem;
    z-index: 1000;
    overflow-y: auto;
}

.main-content {
    margin-left: 280px;
    padding-top: 60px; /* Tekrar garanti olsun */
    width: calc(100vw - 280px);
    max-width: calc(100vw - 280px);
    overflow-x: hidden;
    scroll-behavior: auto;
    position: relative;
    min-height: calc(100vh - 100px);
    box-sizing: border-box;
}

/* Container düzeltmeleri - sola kaymayı önle */
.tab-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.tab-pane {
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    padding-top: 0;
    margin-top: 0;
    position: relative;
    min-height: auto;
    overflow: visible;
    box-sizing: border-box;
}

.nav-link-custom {
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.nav-link-custom:hover, .nav-link-custom.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.nav-link-custom i { font-size: 1.2rem; }

/* Stat Boxes */
.stat-box {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 1.25rem; /* Reduced padding slightly */
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-title {
    font-size: 0.8rem; /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white !important; 
}

.stat-value {
    font-size: 1.5rem; /* Reduced from 1.75rem */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin Card Tweaks for Visibility */
.admin-card .text-muted {
    color: #94a3b8 !important; /* Biraz daha açık gri */
}
.admin-card h3, .admin-card .h3 {
    color: white !important;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Inputs & Forms */
.form-control, .form-select {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: var(--text-main);
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background-color: #1e293b;
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder { color: #64748b; }

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background: #2563eb;
    box-shadow: var(--neon-glow);
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}
.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Ticker */
.ticker-container {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 40px;
    overflow: hidden;
}
.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Badges */
.badge-neon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Tables */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-muted);
    --bs-table-border-color: rgba(255,255,255,0.1);
}
.table-dark-custom th {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-bottom: 1rem;
}

/* Landing Page Tweaks */
.landing-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
}
.landing-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}
.landing-input:focus {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Swap Result Box */
.swap-result-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1rem;
}
.swap-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.swap-row.total {
    border-top: 1px solid #334155;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    color: var(--success);
}

.font-mono { font-family: 'JetBrains Mono', monospace; }
