/* Custom CSS for Crypto Pump Lab */

/* Global Styles */
:root {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --accent-color: #ffc107;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: #333;
}

body {
    background-color: var(--primary-bg) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Sidebar Animations */
.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: var(--accent-color) !important;
    color: #000 !important;
    font-weight: 600;
}

/* Card Enhancements */
.card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Badge Notification */
.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table Enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.05) !important;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Progress Bar Enhancements */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Button Enhancements */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-warning:hover {
    background-color: #e0a800;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background-color: #28a745;
    animation: pulse 2s infinite;
}

.status-offline {
    background-color: #dc3545;
}

.status-warning {
    background-color: #ffc107;
}

/* Modal Enhancements */
.modal-content {
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Alert Enhancements */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-dark {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .flex-fill {
        margin-left: 0 !important;
    }
    
    .d-flex .navbar-dark {
        position: fixed !important;
        top: 0;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .d-flex .navbar-dark.show {
        left: 0;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .mobile-menu-overlay.show {
        display: block;
    }
}

/* Text utilities */
.text-light-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-light-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Custom border colors */
.border-warning-subtle {
    border-color: rgba(255, 193, 7, 0.3) !important;
}

.border-success-subtle {
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.border-danger-subtle {
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.border-info-subtle {
    border-color: rgba(13, 202, 240, 0.3) !important;
}

/* Glow effects */
.glow {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.glow-success {
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.glow-danger {
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

/* Data table enhancements */
.data-table {
    font-size: 0.9rem;
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--accent-color);
}

.data-table td {
    vertical-align: middle;
}

/* Trend indicators */
.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.trend-neutral {
    color: #6c757d;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Tooltip enhancements */
.tooltip-inner {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 500;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--accent-color);
}

/* Success/Error message animations */
.message-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}