/* ZenTokenExchange Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-bottom: 60px !important;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

/* Feature Icons */
.feature-icon {
    color: #667eea;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #212529;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Price Changes */
.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    margin-bottom: 62px !important;
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Trading Interface */
.trading-pair {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.change-positive {
    color: var(--success-color);
}

.change-negative {
    color: var(--danger-color);
}

/* Order Book */
.order-book {
    max-height: 400px;
    overflow-y: auto;
}

.order-book .bid {
    color: var(--success-color);
}

.order-book .ask {
    color: var(--danger-color);
}

/* Trading Form */
.trading-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.trading-form .form-group {
    margin-bottom: 1.5rem;
}

.live-prices-table {
    max-height: 400px;
    overflow-y: auto;
}

/* Wallet */
.wallet-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1rem;
}

.wallet-balance {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.wallet-currency {
    font-size: 1rem;
    opacity: 0.8;
}

/* Dashboard */
.dashboard-stats {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.dashboard-stats h3 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Price Cards */
.price-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e9ecef;
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.coin-logo {
    border-radius: 50%;
}

.price-info {
    margin-top: 10px;
}

.current-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.price-change {
    font-size: 0.9em;
    font-weight: 500;
}

.price-change.positive {
    color: #28a745;
}

.price-change.negative {
    color: #dc3545;
}

.volume-info {
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .price-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Utility Classes */
.text-primary {
    color: #667eea !important;
}

.bg-primary {
    background-color: #667eea !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

body.dark-mode .wallet-card,
body.dark-mode .wallet-card *,
body.dark-mode .wallet-card .btn,
body.dark-mode .wallet-card .btn-outline-primary,
body.dark-mode .wallet-card strong {
    color: #e5e5e5 !important;
    border-color: #90aaff !important;
}
body.dark-mode .wallet-card .btn-outline-primary {
    background: transparent !important;
}
body.dark-mode .wallet-card .btn-outline-primary:hover {
    background: #1a2332 !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
body.dark-mode .wallet-card .text-muted,
body.dark-mode .wallet-card .text-secondary {
    color: #b0b0b0 !important;
}
body.dark-mode .form-control {
    background: #181a20 !important;
    color: #e5e5e5 !important;
    border-color: #333 !important;
}
body.dark-mode .form-control::placeholder {
    color: #aaa !important;
    opacity: 1;
}
body.dark-mode .form-label,
body.dark-mode label {
    color: #e5e5e5 !important;
}
body.dark-mode .table {
    background: #23272f !important;
    color: #e5e5e5 !important;
}
body.dark-mode .table th,
body.dark-mode .table td {
    background: #23272f !important;
    color: #e5e5e5 !important;
}

/* --- DARK MODE CONTRAST FIXES --- */
body.dark-mode, body.dark-mode .container, body.dark-mode .row, body.dark-mode .tab-content, body.dark-mode .tab-pane {
    background: #181a20 !important;
    color: #e5e5e5 !important;
}
body.dark-mode .fw-bold, body.dark-mode .fw-semibold, body.dark-mode .nav-link, body.dark-mode .btn, body.dark-mode .form-label, body.dark-mode .tab, body.dark-mode .tab-content, body.dark-mode .tab-pane, body.dark-mode .badge, body.dark-mode .dropdown-item, body.dark-mode .alert, body.dark-mode .navbar, body.dark-mode .feature-card, body.dark-mode .wallet-card, body.dark-mode .dashboard-stats, body.dark-mode .price-card, body.dark-mode .market-table, body.dark-mode .sparkline-cell {
    color: #e5e5e5 !important;
}
body.dark-mode .text-muted, body.dark-mode .text-secondary {
    color: #b0b0b0 !important;
}
body.dark-mode .btn, body.dark-mode .btn-primary, body.dark-mode .btn-outline-primary {
    color: #fff !important;
    border-color: #2563eb !important;
}
body.dark-mode .btn-outline-primary {
    background: transparent !important;
}
body.dark-mode .btn-outline-primary:hover {
    background: #1a2332 !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
body.dark-mode .dropdown-menu {
    background: #23272f !important;
    color: #e5e5e5 !important;
}
body.dark-mode .dropdown-item {
    color: #e5e5e5 !important;
}
body.dark-mode .dropdown-item.active, body.dark-mode .dropdown-item:active {
    background: #2563eb !important;
    color: #fff !important;
}
body.dark-mode .alert {
    background: #23272f !important;
    color: #ffd700 !important;
    border: 1px solid #444 !important;
}
body.dark-mode .table, body.dark-mode .table th, body.dark-mode .table td {
    background: #23272f !important;
    color: #e5e5e5 !important;
}
body.dark-mode .form-control {
    background: #181a20 !important;
    color: #e5e5e5 !important;
    border-color: #333 !important;
}
body.dark-mode .form-control::placeholder {
    color: #aaa !important;
    opacity: 1;
}
body.dark-mode .card, body.dark-mode .feature-card, body.dark-mode .wallet-card, body.dark-mode .dashboard-stats, body.dark-mode .price-card {
    background: #23272f !important;
    color: #e5e5e5 !important;
    border-color: #222 !important;
}
body.dark-mode .tab-pane {
    background: #23272f !important;
}
body.dark-mode .market-table th, body.dark-mode .market-table td {
    background: #23272f !important;
    color: #e5e5e5 !important;
}
body.dark-mode .sparkline-cell {
    background: #23272f !important;
}

/* Mobile Bottom Nav - always fixed at bottom */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: #23272f;
    border-top: 1.5px solid #222;
    z-index: 1100;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    padding: 0;
}

.mobile-bottom-nav .nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
}

.mobile-bottom-nav .nav-link {
    flex: 1 1 0;
    text-align: center;
    color: #b0b8c1;
    font-size: 0.98em;
    padding: 8px 0 4px 0;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: color 0.18s, background 0.18s;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.35em;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-link span {
    font-size: 0.93em;
    margin-top: 1px;
}

.mobile-bottom-nav .nav-link.active, .mobile-bottom-nav .nav-link:active {
    color: #2563eb;
    background: #181a20;
    font-weight: 600;
}

@media (min-width: 992px) {
    .mobile-bottom-nav { display: none !important; }
    footer { margin-bottom: 0 !important; }
}

body.dark-mode .bg-white,
body.dark-mode .card,
body.dark-mode .shadow-sm.bg-white,
body.dark-mode .bg-light {
  background: #23272f !important;
  color: #e5e5e5 !important;
}
body.dark-mode .card-body,
body.dark-mode .card {
  background: #23272f !important;
  color: #e5e5e5 !important;
}
body.dark-mode .btn-light {
  background: #181a20 !important;
  color: #e5e5e5 !important;
  border-color: #23272f !important;
}
body.dark-mode .btn-light.active,
body.dark-mode .btn-light:active {
  background: #23272f !important;
  color: #2563eb !important;
  border-color: #2563eb !important;
}
body.dark-mode .border-bottom.border-primary {
  border-bottom-color: #2563eb !important;
}
body.dark-mode .text-dark, body.dark-mode .text-muted {
  color: #b0b8c1 !important;
}
body.dark-mode .badge.bg-light {
  background: #23272f !important;
  color: #e5e5e5 !important;
  border: 1px solid #333 !important;
}
body.dark-mode .bg-success-soft {
  background: #193a2f !important;
  color: #4ade80 !important;
} 