/* ============================================
   PROFESSIONAL DARK THEME - CRYPTO WALLET
   site.css
   ============================================ */

:root {
    /* Dark Background Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #141829;
    --bg-tertiary: #1e2139;
    --bg-card: #1a1d35;
    --bg-card-hover: #242843;

    /* Accent Colors - Professional & Muted */
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #06b6d4;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    /* Muted Card Colors for Statistics */
    --card-blue: #2d3f6f;
    --card-green: #2d4f3e;
    --card-cyan: #2d4f5c;
    --card-yellow: #5c4f2d;

    /* Text Colors */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Border & Divider Colors */
    --border-primary: #2d3250;
    --border-secondary: #3a3f5c;
    --border-accent: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image:
            radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
            radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
}

main.container {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1040;
}

.navbar-brand {
    color: var(--text-white) !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 4px;
}

.nav-link:hover {
    color: var(--text-white) !important;
    background: rgba(59, 130, 246, 0.1);
}

.nav-link i {
    margin-right: 6px;
}

.navbar .dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid var(--border-secondary);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    z-index: 9999 !important;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px;
}

.navbar .dropdown-menu .dropdown-header {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 8px 16px;
}

.navbar .dropdown-menu .dropdown-item {
    padding: 10px 16px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-white);
    transform: translateX(4px);
}

.navbar .dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-primary);
}

.navbar .dropdown-menu .dropdown-divider {
    border-color: var(--border-primary);
    margin: 8px 0;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    left: auto;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-secondary);
}

.card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-white);
    font-weight: 600;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 20px;
}

.card-title {
    color: var(--text-white);
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--text-white);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-outline-success {
    border: 1px solid #059669;
    color: #6ee7b7;
    background: rgba(5, 150, 105, 0.1);
}

.btn-outline-success:hover {
    background: rgba(5, 150, 105, 0.2);
    border-color: #10b981;
    color: #86efac;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--accent-warning);
    color: var(--text-white);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent-danger);
    color: var(--text-white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
}

.btn-outline-primary {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: var(--text-white);
}

.btn-outline-secondary {
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-white);
    border-color: var(--border-accent);
}

.btn-outline-info {
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--accent-secondary);
    color: var(--text-white);
}

.btn-outline-success {
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--accent-success);
    color: var(--text-white);
}

.btn-outline-danger {
    border: 1px solid var(--accent-danger);
    color: var(--accent-danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--accent-danger);
    color: var(--text-white);
}

.btn-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--text-white);
}

.btn-info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: var(--text-white);
    border: 1px solid rgba(8, 145, 178, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

.btn-outline-info {
    border: 1px solid #0891b2;
    color: #22d3ee;
    background: rgba(8, 145, 178, 0.1);
}

.btn-outline-info:hover {
    background: rgba(8, 145, 178, 0.2);
    border-color: #06b6d4;
    color: #67e8f9;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--text-white);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
.form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white) !important;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    color: var(--text-white) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* Ensure autofill has proper colors */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-white) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-tertiary) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Firefox autofill */
.form-control:-moz-autofill {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-white) !important;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Ensure all input types have proper text color */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    color: var(--text-white) !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.form-text {
    color: var(--text-muted);
}

.form-check-input {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-label {
    color: var(--text-secondary);
}

/* ============================================
   TABLES - IMPROVED PROFESSIONAL COLORS
   ============================================ */

.table {
    color: var(--text-primary);
    font-size: 14px;
    border-color: var(--border-primary);
    background: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: var(--bg-card-hover) !important;
    --bs-table-active-bg: var(--bg-card-hover) !important;
}

.table thead th {
    background: var(--bg-tertiary) !important;
    color: var(--text-white) !important;
    border-color: var(--border-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 2px solid var(--border-secondary);
}

.table tbody tr {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    transition: all 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table tbody tr:hover {
    background: var(--bg-card-hover) !important;
    transform: scale(1.001);
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    background: transparent !important;
}

.table-light thead th {
    background: var(--bg-tertiary) !important;
    color: var(--text-white) !important;
}

.table-hover tbody tr:hover {
    background: var(--bg-card-hover) !important;
}

.table-danger {
    background: rgba(239, 68, 68, 0.1) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--bg-card) !important;
}

.table-striped tbody tr:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table-responsive {
    border-radius: 8px;
    background: transparent !important;
}

/* Override ALL Bootstrap table background defaults */
.table > :not(caption) > * > * {
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
}

.table > tbody {
    background-color: transparent !important;
}

.table > thead {
    background-color: var(--bg-tertiary) !important;
}

/* Force dark backgrounds on all table elements */
table,
table tbody,
table thead,
table tfoot,
table tr {
    background-color: transparent !important;
}

/* Transaction-specific text colors - PROFESSIONAL & READABLE */
.text-success {
    color: #6ee7b7 !important; /* Bright mint green - very readable */
}

.text-warning {
    color: #fbbf24 !important; /* Amber yellow - professional and readable */
}

.text-danger {
    color: #fca5a5 !important; /* Softer red */
}

.text-info {
    color: #22d3ee !important; /* Bright cyan for info */
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: #93c5fd !important; /* Lighter blue */
}

.text-white {
    color: var(--text-white) !important;
}

.text-light {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

/* ============================================
   BADGES - IMPROVED READABILITY & PROFESSIONAL
   ============================================ */

.badge {
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: rgba(5, 150, 105, 0.3) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(5, 150, 105, 0.5);
}

.badge.bg-warning {
    background: rgba(217, 119, 6, 0.3) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(217, 119, 6, 0.5);
}

.badge.bg-danger {
    background: rgba(220, 38, 38, 0.3) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(220, 38, 38, 0.5);
}

.badge.bg-primary {
    background: rgba(37, 99, 235, 0.3) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(37, 99, 235, 0.5);
}

.badge.bg-secondary {
    background: rgba(71, 85, 105, 0.3) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.badge.bg-info {
    background: rgba(8, 145, 178, 0.3) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(8, 145, 178, 0.5);
}

/* Solid color badges for cards - MUTED PROFESSIONAL COLORS */
.card .bg-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card .bg-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card .bg-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card .bg-info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.card .bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: var(--text-white) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 10px;
    border: none;
    padding: 16px 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-left: 4px solid var(--accent-success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-left: 4px solid var(--accent-danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-left: 4px solid var(--accent-warning);
}

.alert-info {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border-left: 4px solid var(--accent-secondary);
}

.alert i {
    font-size: 1.1rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-primary);
    margin-top: 40px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.rounded-4 {
    border-radius: 12px !important;
}

.rounded-top-4 {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.rounded-3 {
    border-radius: 10px !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #2563eb 100%) !important;
}

.bg-dark {
    background: var(--bg-tertiary) !important;
}

.bg-light {
    background: var(--bg-card) !important;
}

.opacity-50 {
    opacity: 0.5;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   CODE & MONOSPACE
   ============================================ */

code {
    background: rgba(15, 23, 42, 0.6);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid var(--border-primary);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.font-monospace {
    font-size: 0.875rem;
    background-color: rgba(15, 23, 42, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
    color: #a5b4fc;
    border: 1px solid var(--border-primary);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* ============================================
   TOAST / NOTIFICATIONS
   ============================================ */

.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    box-shadow: var(--shadow-lg);
}

.toast-body {
    padding: 12px 16px;
}

/* ============================================
   MODAL
   ============================================ */

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-primary);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-backdrop.show {
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    main.container {
        margin: 16px;
        padding: 20px;
        border-radius: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .table {
        font-size: 12px;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-primary);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-secondary);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

/* ============================================
   SWEETALERT2 DARK THEME
   ============================================ */

.swal2-popup {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.swal2-title {
    color: var(--text-white) !important;
}

.swal2-html-container {
    color: var(--text-primary) !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
    background: var(--bg-tertiary) !important;
    color: var(--text-white) !important;
    border: 1px solid var(--border-secondary) !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.swal2-validation-message {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
    border-color: #06b6d4 !important;
    color: #06b6d4 !important;
}

/* ============================================
   HEADINGS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
}

h1.text-primary, h2.text-primary, h3.text-primary {
    color: #93c5fd !important;
}

/* ============================================
   SPINNER
   ============================================ */

.spinner-border {
    border-color: var(--accent-primary);
    border-right-color: transparent;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================
   BUTTON GROUP
   ============================================ */

.btn-group .btn {
    border-color: var(--border-secondary);
}

.btn-group .btn:hover {
    z-index: 1;
}

.btn-group-sm .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Action buttons in tables */
.btn-group .btn-outline-info,
.btn-group .btn-outline-primary,
.btn-group .btn-outline-danger,
.btn-group .btn-outline-success {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-secondary);
}

.btn-group .btn-outline-info:hover {
    background: rgba(8, 145, 178, 0.2);
    border-color: #0891b2;
    color: #22d3ee;
}

.btn-group .btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: #3b82f6;
    color: #93c5fd;
}

.btn-group .btn-outline-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    color: #fca5a5;
}

.btn-group .btn-outline-success:hover {
    background: rgba(5, 150, 105, 0.2);
    border-color: #059669;
    color: #6ee7b7;
}

/* ============================================
   INPUT GROUP
   ============================================ */

.input-group-text {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}

/* ============================================
   VALIDATION
   ============================================ */

.text-danger.small {
    color: #fca5a5 !important;
    font-size: 0.875rem;
}

.is-invalid {
    border-color: var(--accent-danger) !important;
}

.invalid-feedback {
    color: #fca5a5;
}

/* ============================================
   LOGIN & AUTHENTICATION PAGES
   ============================================ */

/* Ensure login page inputs are always readable */
.login-page input,
.auth-page input,
form[action*="Login"] input,
form[action*="Register"] input {
    background: var(--bg-tertiary) !important;
    color: var(--text-white) !important;
    border: 1px solid var(--border-secondary) !important;
}

.login-page input:focus,
.auth-page input:focus,
form[action*="Login"] input:focus,
form[action*="Register"] input:focus {
    background: var(--bg-card) !important;
    color: var(--text-white) !important;
    border-color: var(--accent-primary) !important;
}

.login-page input::placeholder,
.auth-page input::placeholder,
form[action*="Login"] input::placeholder,
form[action*="Register"] input::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* Override any conflicting styles */
input:-internal-autofill-selected {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-white) !important;
}

/* ============================================
   TRANSACTION TABLES - SPECIFIC STYLING
   ============================================ */

/* Ensure transaction tables have dark backgrounds */
#transactionTable tbody tr,
table tbody tr {
    background-color: var(--bg-card) !important;
}

#transactionTable tbody tr:hover,
table tbody tr:hover {
    background-color: var(--bg-card-hover) !important;
}

/* Ensure all table cells have proper text color */
#transactionTable tbody td,
table tbody td {
    color: var(--text-primary) !important;
}

/* Transaction hash styling */
#transactionTable code,
table code {
    background: rgba(15, 23, 42, 0.8);
    color: #a5b4fc;
    font-weight: 600;
}

/* USD Value and Fee columns - highly visible */
#transactionTable .text-success,
table .text-success {
    color: #6ee7b7 !important;
    font-weight: 600;
}

#transactionTable .text-warning,
table .text-warning {
    color: #fbbf24 !important;
    font-weight: 600;
}