@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Base Styles and Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #000000;
    --primary-dark: #333333;
    --secondary: #95a5a6;
    --secondary-dark: #7f8c8d;
    --danger: #e74c3c;
    --danger-dark: #c0392b;
    --success: #2ecc71;
    --success-dark: #27ae60;
    --warning: #f39c12;
    --warning-dark: #e67e22;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #bdc3c7;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #ddd;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Make scrollbar transparent */
body::-webkit-scrollbar {
    width: 1px; 
}

body::-webkit-scrollbar-track {
    background: transparent; 
}

body::-webkit-scrollbar-thumb {
    background: transparent; 
}






/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Candlestick Loader Animation */
.candlestick-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
}

.candlestick-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candlestick-wick {
    width: 2px;
    height: 24px;
    background: #28a745; /* Green wick */
}

.candlestick-body {
    width: 12px;
    height: 48px;
    background: #28a745; /* Green body */
    border-radius: 3px;
}

.candlestick-bottom-wick {
    width: 2px;
    height: 24px;
    background: #28a745; /* Green wick */
}

/* Red candlestick */
.candlestick-column.red .candlestick-wick,
.candlestick-column.red .candlestick-body,
.candlestick-column.red .candlestick-bottom-wick {
    background: #dc3545; /* Red color */
}

/* Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.candlestick-column:nth-child(1) {
    animation: bounce 1s ease-in-out infinite 0.1s;
}

.candlestick-column:nth-child(2) {
    animation: bounce 1s ease-in-out infinite 0.2s;
}

.candlestick-column:nth-child(3) {
    animation: bounce 1s ease-in-out infinite 0.1s;
}