/* RamCoin Explorer - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ramcoin-primary: #00d4ff;
    --ramcoin-secondary: #7b2cbf;
    --ramcoin-bg-dark: #1a1a2e;
    --ramcoin-bg-mid: #16213e;
    --ramcoin-bg-light: #0f3460;
}

/* Override body background */
body {
    background: linear-gradient(135deg, var(--ramcoin-bg-dark) 0%, var(--ramcoin-bg-mid) 50%, var(--ramcoin-bg-light) 100%) !important;
    background-attachment: fixed !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Navbar */
.navbar, .navbar-dark, .bg-dark {
    background: rgba(0,0,0,0.3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--ramcoin-primary) !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

.navbar-brand::before {
    content: "🐏 ";
}

.nav-link {
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.3s !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--ramcoin-primary) !important;
}

/* Cards */
.card {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(5px);
}

.card-header {
    background: rgba(0,212,255,0.1) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--ramcoin-primary) !important;
    font-weight: 600;
    border-radius: 20px 20px 0 0 !important;
}

.card-body {
    color: #ccc;
}

/* Tables */
.table {
    color: #ccc !important;
}

.table thead th {
    background: rgba(0,212,255,0.1) !important;
    color: var(--ramcoin-primary) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    font-weight: 600;
}

.table td, .table th {
    border-color: rgba(255,255,255,0.05) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255,255,255,0.02) !important;
}

.table-hover tbody tr:hover {
    background: rgba(0,212,255,0.05) !important;
}

/* Buttons */
.btn-primary, .btn-info {
    background: linear-gradient(90deg, var(--ramcoin-primary), var(--ramcoin-secondary)) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    transition: opacity 0.3s, transform 0.3s !important;
}

.btn-primary:hover, .btn-info:hover {
    opacity: 0.85 !important;
    transform: translateY(-2px);
}

.btn-secondary, .btn-outline-secondary {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 30px !important;
    color: #fff !important;
}

/* Forms */
.form-control, .form-select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    color: #fff !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--ramcoin-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0,212,255,0.25) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

/* Stats panels */
.bg-primary, .bg-info, .bg-success, .bg-warning, .bg-danger {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 15px !important;
}

/* Page header panels */
.card.border-0 {
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Badges */
.badge {
    border-radius: 20px !important;
    padding: 5px 12px !important;
}

.badge.bg-success {
    background: rgba(0,255,100,0.2) !important;
    color: #00ff64 !important;
}

.badge.bg-danger {
    background: rgba(255,50,50,0.2) !important;
    color: #ff5050 !important;
}

.badge.bg-warning {
    background: rgba(255,200,0,0.2) !important;
    color: #ffc800 !important;
}

.badge.bg-info {
    background: rgba(0,212,255,0.2) !important;
    color: var(--ramcoin-primary) !important;
}

/* Links */
a {
    color: var(--ramcoin-primary) !important;
    transition: opacity 0.3s !important;
}

a:hover {
    color: var(--ramcoin-primary) !important;
    opacity: 0.8 !important;
}

/* Footer */
footer, .footer {
    background: rgba(0,0,0,0.3) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    color: #666 !important;
}

/* Pagination */
.page-link {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #ccc !important;
}

.page-link:hover {
    background: rgba(0,212,255,0.1) !important;
    color: var(--ramcoin-primary) !important;
}

.page-item.active .page-link {
    background: linear-gradient(90deg, var(--ramcoin-primary), var(--ramcoin-secondary)) !important;
    border-color: transparent !important;
}

/* Alerts */
.alert {
    border-radius: 15px !important;
    border: none !important;
}

.alert-info {
    background: rgba(0,212,255,0.1) !important;
    color: var(--ramcoin-primary) !important;
}

.alert-success {
    background: rgba(0,255,100,0.1) !important;
    color: #00ff64 !important;
}

.alert-warning {
    background: rgba(255,200,0,0.1) !important;
    color: #ffc800 !important;
}

.alert-danger {
    background: rgba(255,50,50,0.1) !important;
    color: #ff5050 !important;
}

/* Dropdown menus */
.dropdown-menu {
    background: rgba(22,33,62,0.95) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: #ccc !important;
}

.dropdown-item:hover {
    background: rgba(0,212,255,0.1) !important;
    color: var(--ramcoin-primary) !important;
}

/* Modal */
.modal-content {
    background: var(--ramcoin-bg-mid) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 20px !important;
}

.modal-header, .modal-footer {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Text colors */
.text-muted {
    color: #888 !important;
}

.text-success {
    color: #00ff64 !important;
}

.text-danger {
    color: #ff5050 !important;
}

.text-warning {
    color: #ffc800 !important;
}

.text-info {
    color: var(--ramcoin-primary) !important;
}

/* Block/TX hash monospace */
.text-monospace, code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 5px;
}

/* Progress bars */
.progress {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--ramcoin-primary), var(--ramcoin-secondary)) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0,212,255,0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,212,255,0.5);
}

/* Charts styling */
.chart-container {
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    padding: 15px;
}

/* DataTables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: #888 !important;
}

/* Explorer specific - address/hash displays */
.hash-display {
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

/* Top panels stat numbers */
h1, h2, h3, h4, h5 {
    color: #fff;
}

.display-4, .display-5, .display-6 {
    color: var(--ramcoin-primary) !important;
    font-weight: 700 !important;
}

/* QR codes */
.qr-code {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}
