/* CryptoPyramid Custom Styles */

/* Mobile App Section Styles */
.app-store-btn {
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.phone-frame {
    transition: all 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.trust-item {
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

.bg-gradient-to-r {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

:root {
    --primary-color: #000000;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #000000;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --trading-green: #00c853;
    --trading-red: #ff1744;
    
    /* Theme variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --navbar-bg: #343a40;
    --hero-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --market-header-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --navbar-bg: #000000;
    --hero-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --market-header-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* Light theme (default) */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --navbar-bg: #343a40;
    --hero-gradient: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    --market-header-gradient: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    min-height: 100vh;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    padding: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    display: inline-block;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0 !important;
}

/* Login/Register Cards */
.login-card .card,
.register-card .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

/* Trading Interface Styles */
.trading-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.balance-display {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Trading Buttons */
.btn-buy {
    background: var(--trading-green) !important;
    border-color: var(--trading-green) !important;
    color: white !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: #00a341 !important;
    border-color: #00a341 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.4);
}

.btn-sell {
    background: var(--trading-red) !important;
    border-color: var(--trading-red) !important;
    color: white !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-sell:hover {
    background: #d50000 !important;
    border-color: #d50000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.4);
}

/* Market Overview Styling */
.market-overview-header {
    background: var(--market-header-gradient);
    color: white;
    border-radius: 10px 10px 0 0;
}

.coin-pair-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
}

.coin-pair-selector:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.coin-pair-selector option {
    background: #343a40;
    color: white;
}

.quick-trade-buttons .btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.price-display {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
}

/* Override Bootstrap tab styles for trading */
#tradingTabs .nav-link {
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#buy-tab {
    color: var(--trading-green);
}

#buy-tab.active {
    background-color: var(--trading-green);
    color: white;
}

#sell-tab {
    color: var(--trading-red);
}

#sell-tab.active {
    background-color: var(--trading-red);
    color: white;
}

/* Market Data Tables */
.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Price Change Badges */
.price-up {
    color: var(--trading-green);
    font-weight: bold;
}

.price-down {
    color: var(--trading-red);
    font-weight: bold;
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

/* Portfolio Styles */
.portfolio-item {
    border-left: 4px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.portfolio-item:hover {
    border-left-color: var(--success-color);
}

/* Admin Panel Styles */
.admin-sidebar {
    background: linear-gradient(180deg, var(--dark-color), #495057);
    min-height: 100vh;
}

.admin-content {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Status Badges */
.status-pending {
    background-color: var(--warning-color);
    color: #212529;
}

.status-approved {
    background-color: var(--success-color);
}

.status-rejected {
    background-color: var(--danger-color);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    /* Dashboard and Main Content */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Trading Panel */
    .trading-panel {
        padding: 15px;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 8px 16px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Tables - Make them scrollable */
    .table-responsive {
        border: none;
        margin-bottom: 0;
    }
    
    .table {
        margin-bottom: 0;
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Buttons - Stack vertically on mobile */
    .btn-group-vertical .btn {
        margin-bottom: 5px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
    }
    
    /* Forms */
    .input-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Portfolio cards */
    .portfolio-item {
        margin-bottom: 15px;
    }
    
    /* Market overview adjustments */
    .market-overview-header {
        padding: 15px;
        text-align: center;
    }
    
    .coin-pair-selector {
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* Stats and metrics */
    .stats-card {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Hide desktop-only elements */
    .d-md-block.d-none {
        display: none !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 10px 16px;
    }
    
    /* Stack all flex items */
    .d-flex:not(.align-items-center) {
        flex-direction: column !important;
    }
    
    /* Adjust card layouts */
    .row .col-md-6,
    .row .col-md-4,
    .row .col-md-3 {
        margin-bottom: 15px;
    }
    
    /* Tables - smaller text and padding */
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 6px 4px;
    }
    
    /* Crypto price cards */
    .crypto-showcase .col-6 {
        margin-bottom: 10px;
    }
    
    .crypto-card {
        padding: 10px !important;
        text-align: center;
    }
    
    /* Admin panels */
    .admin-sidebar {
        min-height: auto;
    }
    
    /* Navigation improvements */
    .navbar-collapse {
        background: var(--navbar-bg);
        margin-top: 10px;
        padding: 10px;
        border-radius: 8px;
    }
}

/* Mobile TradingView Chart Enhancements */
@media (max-width: 768px) {
    /* Force mobile chart to be larger and more functional */
    .tradingview-mobile-chart {
        height: 500px !important; /* Even larger for better visibility */
        margin: 20px 0 !important;
    }
    
    .chart-container-mobile {
        height: calc(100% - 50px) !important;
    }
    
    #tradingview_mobile_widget {
        min-height: 450px !important;
        height: 450px !important;
    }
    
    /* Optimize mobile chart header for better space usage */
    .chart-header-mobile {
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .chart-symbol {
        font-size: 0.95rem;
    }
    
    .chart-price {
        font-size: 0.9rem;
    }
    
    .chart-change {
        font-size: 0.8rem;
    }
}

/* PWA Mobile Specific Styles */
@media screen and (display-mode: standalone) {
    /* Installed PWA specific styles */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .navbar {
        padding-top: calc(8px + env(safe-area-inset-top));
    }
    
    /* Enhanced chart for PWA mode */
    .tradingview-mobile-chart {
        height: 520px !important;
    }
}

/* Touch-friendly buttons and interactions */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .form-control {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .table td, .table th {
        padding: 12px 8px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Prevent layout shifts on mobile */
* {
    box-sizing: border-box;
}

.container, .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile optimization for dashboard cards */
@media (max-width: 768px) {
    .row.g-4 {
        gap: 10px !important;
    }
    
    .col-sm-6, .col-md-4, .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .crypto-card {
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Dashboard header buttons on mobile */
    .d-flex.flex-wrap .btn {
        min-width: 100px;
        font-size: 0.875rem;
    }
    
    /* Stack dashboard cards vertically */
    .col-lg-3, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    /* Mobile table improvements */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
    
    /* Card body padding adjustments for mobile */
    .card-body {
        padding: 0.75rem;
    }
    
    .card-body h4 {
        font-size: 1rem;
    }
    
    .card-body p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .card-body .fa-2x {
        font-size: 1.5rem !important;
    }
    
    /* Market cards mobile layout */
    .market-card {
        margin-bottom: 8px;
    }
    
    /* Trading interface mobile improvements */
    .trading-panel .row {
        margin: 0;
    }
    
    .trading-panel .col-md-6 {
        padding: 8px 4px;
    }
    
    /* Compact mobile portfolio cards */
    .dashboard-card-mobile {
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 8px;
    }
    
    .dashboard-card-mobile .card-body {
        padding: 12px;
    }
    
    .dashboard-card-mobile h4 {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    /* Recent transactions mobile */
    .recent-transactions-mobile {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .recent-transactions-mobile .table {
        font-size: 0.75rem;
    }
    
    .recent-transactions-mobile .table td,
    .recent-transactions-mobile .table th {
        padding: 6px 4px;
    }
    
    /* Mobile Balance Grid - No boxes, just numbers */
    .mobile-balance-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 20px;
        padding: 15px 10px;
        background: transparent;
    }
    
    .balance-item {
        text-align: center;
        background: none;
        border: none;
        padding: 0;
    }
    
    .balance-label {
        font-size: 0.75rem;
        color: #6c757d;
        margin-bottom: 2px;
    }
    
    .balance-value {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    /* TradingView-style mobile chart - Enhanced */
    .tradingview-mobile-chart {
        background: #1e1e1e;
        border-radius: 8px;
        margin: 15px 0;
        height: 450px; /* Increased height significantly */
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .chart-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .chart-symbol {
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .chart-price {
        color: #fff;
        font-weight: 600;
        font-size: 0.85rem;
    }
    
    .chart-change {
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .chart-container-mobile {
        height: calc(100% - 60px);
        padding: 0;
        position: relative;
    }
    
    .mobile-chart-canvas {
        height: 100%;
        width: 100%;
        position: relative;
    }
    
    .mobile-chart-canvas canvas {
        border-radius: 4px;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: #2a2a2a;
        color: #fff;
    }
    
    .chart-symbol {
        font-weight: 600;
        font-size: 1rem;
    }
    
    .chart-price {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .chart-change {
        font-size: 0.85rem;
        margin-left: 8px;
    }
    
    .chart-container-mobile {
        height: 180px;
        background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
        position: relative;
        overflow: hidden;
    }
    
    /* Enhanced mobile TradingView chart container */
    .tradingview-widget-container {
        width: 100% !important;
        height: 100% !important;
        min-height: 400px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Mobile chart specific iframe styling */
    .tradingview-widget-container iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        border-radius: 8px;
    }
    
    /* Ensure TradingView mobile widget takes full space */
    #tradingview_mobile_widget {
        width: 100% !important;
        height: 100% !important;
        min-height: 400px !important;
        border-radius: 8px;
        background: #1e1e1e;
    }
    
    .chart-placeholder {
        color: #888;
        font-size: 0.85rem;
        text-align: center;
        background: rgba(0,0,0,0.5);
        padding: 10px;
        border-radius: 4px;
        backdrop-filter: blur(5px);
    }
    
    /* Mobile market overview styling */
    .mobile-market-overview {
        background: rgba(248, 249, 250, 0.02);
        border-radius: 8px;
        padding: 15px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-market-overview h6 {
        color: #fff;
        font-weight: 600;
    }
    
    /* Mobile specific button styling */
    .btn-buy, .btn-sell {
        border-radius: 6px;
        font-weight: 600;
        padding: 12px;
        border: none;
        transition: all 0.2s ease;
    }
    
    .btn-buy {
        background: #00c851;
        color: white;
    }
    
    .btn-buy:hover {
        background: #00a142;
        transform: translateY(-1px);
    }
    
    .btn-sell {
        background: #ff4444;
        color: white;
    }
    
    .btn-sell:hover {
        background: #cc0000;
        transform: translateY(-1px);
    }
    
    /* Mobile trade interface styling */
    .quick-amounts .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 4px;
    }
    
    .mobile-market-overview .form-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .mobile-market-overview .input-group-sm .form-control,
    .mobile-market-overview .input-group-sm .input-group-text {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .mobile-market-overview .input-group-text {
        background: #f8f9fa;
        border-color: #dee2e6;
    }
    
    #mobileTradeStatus {
        min-height: 20px;
        transition: all 0.3s ease;
    }
    
    /* Enhanced mobile form styling */
    .mobile-market-overview .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
    
    .quick-amounts .btn-outline-secondary:hover {
        background: #6c757d;
        border-color: #6c757d;
        color: white;
    }
    
    /* Percentage buttons styling */
    .quick-amounts .btn-outline-primary {
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 4px;
        border-color: #007bff;
        color: #007bff;
    }
    
    .quick-amounts .btn-outline-primary:hover {
        background: #007bff;
        border-color: #007bff;
        color: white;
        transform: translateY(-1px);
    }
    
    /* Quick amounts section styling */
    .quick-amounts .mb-2:first-child {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 8px;
    }
    
    .quick-amounts small {
        font-weight: 500;
    }
    
    /* Percentage Slider Styling */
    .percentage-slider-container {
        background: rgba(248, 249, 250, 0.05);
        border-radius: 8px;
        padding: 12px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .percentage-slider-wrapper {
        position: relative;
    }
    
    .percentage-slider {
        width: 100%;
        height: 8px;
        border-radius: 4px;
        background: #ddd;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .percentage-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        box-shadow: 0 3px 6px rgba(0,123,255,0.3);
        transition: all 0.2s ease;
        border: 3px solid #fff;
    }
    
    .percentage-slider::-webkit-slider-thumb:hover {
        background: #0056b3;
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0,123,255,0.4);
    }
    
    .percentage-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
        border: 3px solid #fff;
        box-shadow: 0 3px 6px rgba(0,123,255,0.3);
        transition: all 0.2s ease;
    }
    
    .percentage-slider::-moz-range-thumb:hover {
        background: #0056b3;
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0,123,255,0.4);
    }
    
    .percentage-slider::-webkit-slider-track {
        height: 8px;
        border-radius: 4px;
        background: linear-gradient(to right, #dc3545 0%, #ffc107 50%, #28a745 100%);
    }
    
    .percentage-slider::-moz-range-track {
        height: 8px;
        border-radius: 4px;
        background: linear-gradient(to right, #dc3545 0%, #ffc107 50%, #28a745 100%);
        border: none;
    }
    
    .slider-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 5px;
    }
    
    .slider-labels span {
        font-size: 0.7rem;
        color: #6c757d;
        font-weight: 500;
    }
    
    /* Balance display styling */
    .text-info {
        font-weight: 600;
    }
    
    #percentageValue {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    /* Read-only amount input styling */
    #mobileTradeAmount[readonly] {
        background-color: rgba(248, 249, 250, 0.8);
        cursor: default;
    }
    
    /* Currency toggle styling */
    .currency-toggle-item {
        grid-column: span 2;
        text-align: center;
    }
    
    .currency-toggle {
        display: flex;
        gap: 5px;
        justify-content: center;
    }
    
    .currency-toggle .btn {
        min-width: 50px;
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .currency-toggle .btn.active {
        background: #007bff;
        border-color: #007bff;
        color: white;
    }
    
    .currency-toggle .btn:not(.active) {
        background: transparent;
        border-color: rgba(255,255,255,0.3);
        color: #6c757d;
    }
    
    .currency-toggle .btn:not(.active):hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.5);
        color: #fff;
    }
    
    /* Currency label styling */
    .currency-label {
        font-size: 0.85em;
        opacity: 0.8;
        font-weight: 500;
    }
}

/* Extra mobile optimizations */
@media (max-width: 576px) {
    .btn-group .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .h3 {
        font-size: 1.3rem;
    }
    
    /* Compact navigation */
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Mobile Action Toggle Styles */
.mobile-actions-toggle {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,123,255,0.3);
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.mobile-actions-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.mobile-actions-toggle .fas.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-actions-toggle[aria-expanded="true"] .fas.fa-chevron-down {
    transform: rotate(180deg);
}

#mobileActions .btn {
    transition: all 0.2s ease;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobileActions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mobileActions .row {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact mobile dashboard */
@media (max-width: 768px) {
    .mobile-actions-toggle {
        font-size: 0.9rem;
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    #mobileActions .btn {
        padding: 8px 12px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    #mobileActions .col-12 .btn {
        margin-top: 5px;
    }
}
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Alert Enhancements */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Trading Chart Container */
.trading-chart {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Crypto Logo Styles */
.crypto-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Transaction History */
.transaction-item {
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.transaction-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #495057) !important;
}

/* Utilities */
.text-trading-green {
    color: var(--trading-green) !important;
}

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

.bg-trading-green {
    background-color: var(--trading-green) !important;
}

.bg-trading-red {
    background-color: var(--trading-red) !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 {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
