/* web_assets/css/style.css */

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Glassmorphism Navigation (Light) */
.glass-nav-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chart Container */
#mainTradingChart {
    width: 100% !important;
    height: 100% !important;
}

/* Text Gradient */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #10b981, #3b82f6);
}

/* Table Hover */
tbody tr {
    transition: background-color 0.2s ease;
}

/* Input Focus */
input:focus {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Selection */
::selection {
    background-color: #10b981;
    color: #ffffff;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Button */
button {
    cursor: pointer;
}
/* =========================================
   LOGO STYLES (Header + Footer)
   ========================================= */

/* --- Header Logo Container --- */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-1px);
}

/* --- Header Logo Image --- */
.logo-img {
    height: 48px;              /* Perfect size for 80px navbar */
    width: auto;                /* Keeps aspect ratio */
    object-fit: contain;        /* Prevents distortion */
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Logo Hover Effect */
.logo-container:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.2));
}

/* --- Header Brand Text --- */
.logo-text {
    margin-left: 12px;
    font-size: 1.5rem;         /* 24px */
    font-weight: 800;
    color: #111827;             /* gray-900 */
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text span {
    color: #10b981;             /* brand green */
}

/* --- Fallback Icon (if image fails) --- */
.logo-fallback {
    display: none;              /* Hidden by default */
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-fallback i {
    color: #10b981;
    font-size: 1.25rem;
}

/* =========================================
   FOOTER LOGO STYLES
   ========================================= */

.footer-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.footer-logo-container:hover {
    transform: translateY(-1px);
}

/* --- Footer Logo Image --- */
.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-container:hover .footer-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

/* --- Footer Brand Text --- */
.footer-logo-text {
    margin-left: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.footer-logo-text span {
    color: #10b981;
}

/* --- Footer Fallback Icon --- */
.footer-logo-fallback {
    display: none;
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.footer-logo-fallback i {
    color: #10b981;
    font-size: 1.25rem;
}

/* =========================================
   LOGO RESPONSIVE (MOBILE)
   ========================================= */

@media (max-width: 768px) {
    .logo-img,
    .footer-logo-img {
        height: 40px;            /* Smaller on mobile */
    }
    
    .logo-text,
    .footer-logo-text {
        font-size: 1.25rem;      /* 20px on mobile */
        margin-left: 10px;
    }
    
    .logo-fallback,
    .footer-logo-fallback {
        width: 36px;
        height: 36px;
    }
    
    .logo-fallback i,
    .footer-logo-fallback i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-img,
    .footer-logo-img {
        height: 36px;            /* Even smaller on small phones */
    }
    
    .logo-text,
    .footer-logo-text {
        font-size: 1.1rem;       /* 18px */
        margin-left: 8px;
        letter-spacing: -0.3px;
    }
}