@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2ecc71; /* Green accent */
    --secondary-color: #95a5a6;
    --accent-color: #27ae60;
    --bg-color: #05080a; /* Fallback */
    --card-bg: #121619;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
}

body { 
    /* Deep Dark Green Gradient Background */
    background: linear-gradient(135deg, #051010 0%, #000000 100%);
    padding-top: 30px; 
    font-family: 'Inter', sans-serif; 
    color: var(--text-primary);
    min-height: 100vh;
}

.navbar-brand img {
    height: 50px;
    object-fit: contain;
    /* Optional: Add glow if needed */
    /* filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); */
}

.card { 
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08); /* Subtle border for dark mode */
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: rgba(46, 204, 113, 0.3); /* Green glow on hover */
}

/* Card Header Styling */
.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 700;
    padding: 1.5rem;
    color: white; /* Force white text */
    display: flex;
    align-items: center;
}

/* Aurora Dashboard Styling */
.dashboard-card {
    background: #0f1214; /* Deep black/grey */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    color: white;
    min-height: 320px;
    display: flex;
    align-items: center;
}

/* Green Aurora Effect */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, rgba(0,0,0,0) 70%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.dashboard-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.highlight-green {
    color: #2ecc71;
}

.metric-badge {
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #bdc3c7;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 30px;
}
.metric-badge span { color: white; margin-left: 5px; }

.balance-label {
    color: #95a5a6;
    font-size: 1rem;
    margin-bottom: 5px;
}

.big-balance {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: #2ecc71;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(46, 204, 113, 0.2);
    font-variant-numeric: tabular-nums; /* Prevent jitter */
}
.small-decimal {
    font-size: 0.5em; /* 1/2 size */
    opacity: 0.9;
}
.big-balance .symbol {
    font-size: 2rem;
    color: #95a5a6;
    vertical-align: middle;
    margin-left: 10px;
}

.sub-stats {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: inline-flex;
    gap: 30px;
}
.sub-stat-item small { display: block; color: #7f8c8d; font-size: 0.8rem; text-transform: uppercase; }
.sub-stat-item strong { display: block; font-size: 1.1rem; color: #ecf0f1; }

.dashboard-right-img {
    position: absolute;
    right: 0; /* Align to edge */
    bottom: 0;
    width: 450px; /* Increased width */
    height: 100%; 
    pointer-events: none;
}

/* Floating Coins Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-30px); } /* Increased float range */
    100% { transform: translateY(0px); }
}
.floating-coin {
    animation: float 4s ease-in-out infinite;
}
.floating-coin:nth-child(2) { animation-delay: 1s; }
.floating-coin:nth-child(3) { animation-delay: 2s; }
/* Action Card Styling */
.action-card {
    background: #1a1e22;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 20px;
    overflow: hidden;
}

/* Main Tabs (Deposit/Withdraw) */
.main-tabs .nav-link {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: 700;
    background: transparent;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 0;
    margin: 0 10px;
}
.main-tabs .nav-link:hover { color: #ecf0f1; }
.main-tabs .nav-link.active {
    color: #2ecc71;
    background: transparent;
    border-bottom: 2px solid #2ecc71;
}

/* Custom Input Group */
.custom-input-group {
    background: #0f1214;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 5px;
    transition: border-color 0.2s;
}
.custom-input-group:focus-within {
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.1);
}
.token-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-outline-secondary {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}
.btn-outline-secondary:hover {
    background-color: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

/* Checkbox Buttons */
.btn-check:checked + .btn-outline-secondary {
    background-color: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

/* Dark Mode Text Adjustments */
.text-muted {
    color: #adb5bd !important; /* Lighter grey for dark background */
}
.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}
.form-control, .input-group-text {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #2c3e50;
    background-color: #1a1e22;
    color: #ecf0f1;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    background-color: #212529;
    color: white;
}
.input-group-text {
    background-color: #23272b;
    border-left: none;
    color: #bdc3c7;
}

/* Custom Table Styling (Minimal Dark) */
.custom-table {
    color: #ecf0f1;
    border-collapse: separate;
    border-spacing: 0 8px; /* Gap between rows */
    background-color: transparent !important;
}
/* Override Bootstrap table background */
.custom-table > :not(caption) > * > * {
    background-color: transparent; 
    color: #ecf0f1;
    box-shadow: none; /* Remove any inset shadows */
}

.custom-table thead th {
    border: none;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    padding-bottom: 15px;
}
/* Row Background */
.custom-table tbody tr {
    background-color: #121619; /* Dark Grey Row Background */
    transition: transform 0.2s, background-color 0.2s;
    border-radius: 8px; /* Note: border-radius on tr might not work without display block, but let's try or use td */
}
.custom-table tbody tr td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.custom-table tbody tr td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.custom-table tbody tr:hover {
    background-color: #1a1e22; /* Slightly lighter on hover */
    transform: translateY(-2px);
}
.custom-table td {
    border: none;
    padding: 20px 15px;
    vertical-align: middle;
    /* Removed bottom border as we use row background */
}

.type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.text-amount {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.hover-white:hover { color: white !important; }

/* Nav Tabs (Dark Mode) */
.nav-tabs { border-bottom: 2px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem !important; }
.nav-tabs .nav-link {
    border: none;
    color: #7f8c8d;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.2s;
}
.nav-tabs .nav-link.active {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
}
.nav-tabs .nav-link:hover { color: #2ecc71; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #bdc3c7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #95a5a6; }

@media (max-width: 576px) {
    #connectBtn {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 14px !important;
    }
    header img {
        height: 50px !important;
    }
    /* Mobile Table Optimization */
@media (max-width: 768px) {
    .custom-table thead {
        display: none;
    }
    .custom-table, .custom-table tbody, .custom-table tr, .custom-table td {
        display: block;
        width: 100%;
    }
    .custom-table tr {
        margin-bottom: 15px;
        background-color: #1a1e22; /* Card-like background */
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 12px;
        padding: 15px;
        position: relative;
    }
    .custom-table td {
        padding: 5px 0;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
    }
    /* Add labels via pseudo-elements or specific classes if needed, 
       but for flexibility we'll assume row layout changes */
    .custom-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #95a5a6;
        text-transform: uppercase;
        font-size: 0.8rem;
    }
    
    /* Specific adjustments for our columns */
    .custom-table td:first-child { /* Date */
        color: #7f8c8d;
        font-size: 0.85rem;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }
    .custom-table td:last-child { /* Action */
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.05);
        justify-content: flex-end; /* Button takes full width or aligns right */
    }
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}
.page-btn {
    background: #1a1e22;
    border: 1px solid rgba(46, 204, 113, 0.3); /* Green border */
    color: #2ecc71; /* Green text */
    padding: 8px 20px;
    border-radius: 20px; /* More rounded */
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.page-btn:hover:not(:disabled) {
    background: #2ecc71;
    color: #0f1214; /* Dark text on green bg */
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    transform: translateY(-1px);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.1);
    color: #7f8c8d;
    background: transparent;
}
.page-info {
    color: #bdc3c7;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 15px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #2ecc71;
}
.metric-label {
    color: #95a5a6;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.status-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}
.status-active { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-inactive { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

.btn-primary {
    background-color: #2ecc71;
    border-color: #2ecc71;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}
