* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1A1A2E, #0F3460);
    color: #FFFFFF;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

aside {
    width: 250px;
    background: linear-gradient(180deg, #16213E, #1A3C6D, #0F3460);
    padding: 20px;
    height: 100vh;
    position: fixed;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #00D4FF;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

.mobile-menu-close {
    display: none;
    background: none;
    border: none;
    color: #00B8E6;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin: 25px 0;
}

nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    position: relative;
    overflow: visible;
}

nav ul li a:hover, nav ul li a.active {
    color: #00D4FF;
    background: rgba(0, 184, 230, 0.2);
    transform: translateX(5px);
}

.main-container {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    transition: opacity 0.3s ease;
    position: relative;
    overflow-y: auto;
    height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, #1A3C6D, #0F3460);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

header:hover {
    background: linear-gradient(90deg, #007ACC, #00B8E6);
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right span {
    margin-right: 15px;
    font-size: 16px;
}

.header-right button {
    border: none;
    padding: 8px 15px;
    color: #FFFFFF;
    border-radius: 5px;
    cursor: pointer;
    background: green;
    font-family: 'Poppins', sans-serif;
    
}

.header-right button:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(45deg, #00D4FF, #005F99);
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: linear-gradient(135deg, #252D4A, #1A3C6D);
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    transition: none !important; /* Make cards static */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 184, 230, 0.2);
    position: relative;
    overflow: visible;
}

.card:hover {
    transform: none !important; /* Remove 3D movement */
}

.card.large {
    transition: none !important; /* Ensure large cards are static */
}

.card.large:hover {
    transform: none !important; /* Remove hover effect */
}

.card.full-width {
    width: 100%;
    transition: none !important; /* Ensure full-width cards are static */
}

.card.full-width:hover {
    transform: none !important; /* Remove hover effect */
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card p {
    font-size: 24px;
    color: #00D4FF;
    font-weight: 400;
}

.card small {
    color: #B0B0B0;
    font-weight: 300;
}

.content-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.content-row .card {
    transition: none !important; /* Ensure content row cards are static */
}

.content-row .card:hover {
    transform: none !important; /* Remove hover effect */
}

.card.large {
    flex: 1;
}

.card.large canvas {
    max-height: 200px;
    width: 100%; /* Ensure full width for canvas */
    height: auto; /* Allow canvas to scale with content */
}

.card ul {
    list-style: none;
}

.card ul li {
    margin: 15px 0;
    color: #E0E0E0;
    padding: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.2s;
    width: 100%;
    display: inline-flex
;
}
@media (max-width: 480px) {
    .emoji-badge, .username, .count {

        text-align: center;
    }
}

.card ul li:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.card.full-width {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    transition: none;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: none;
}

th {
    color: #00D4FF;
    background: linear-gradient(90deg, #0F3460, #1A3C6D);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

th:hover {
    background: linear-gradient(90deg, #007ACC, #00B8E6);
}

tr {
    transition: none;
}


.product-image img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 16px;
    margin: 5px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-to-cart, .buy-now {
    background: linear-gradient(45deg, #00B8E6, #007ACC);
    border: none;
    padding: 10px 20px;
    color: #FFFFFF;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.buy-now {
    background: linear-gradient(45deg, #FF4D4D, #CC0000);
}

.add-to-cart:hover, .buy-now:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(45deg, #00D4FF, #005F99);
}

.action-btn {
    background: linear-gradient(45deg, #00B8E6, #007ACC);
    border: none;
    padding: 6px 12px;
    color: #FFFFFF;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.action-btn:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(45deg, #00D4FF, #005F99);
}

footer {
    text-align: center;
    padding: 20px;
    color: #B0B0B0;
    background: linear-gradient(90deg, #16213E, #1A3C6D);
    border-radius: 10px;
    font-weight: 300;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid transparent;
    border-top: 5px solid #00D4FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.mobile-menu-btn {
    display: none;
    background: linear-gradient(45deg, #00B8E6, #007ACC);
    border: none;
    padding: 8px;
    color: #FFFFFF;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.1);
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: particleMove 5s linear infinite;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #0F3460;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00B8E6, #007ACC);
    transition: none !important; /* Make progress bars static */
}

.table-filter {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 184, 230, 0.2);
    border-radius: 5px;
    background: rgba(37, 45, 74, 0.8);
    color: #E0E0E0;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particleMove {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0.5; }
}

@media (max-width: 768px) {
    aside {
        width: 80px;
        transform: translateX(0);
    }
    .logo h2 {
        font-size: 18px;
    }
    nav ul li a {
        font-size: 0;
    }
    nav ul li a i {
        margin-right: 0;
    }
    .main-container {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
    .stats-row, .content-row {
        flex-direction: column;
        gap: 15px;
    }
    .card {
        width: 100%;
        transition: none !important; /* Ensure cards are static on tablets */
    }
    .card:hover {
        transform: none !important; /* Remove hover effect */
    }
    .header-right {
        margin-top: 10px;
    }
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    aside {
        width: 100%;
        transform: translateX(-100%);
        z-index: 2000;
    }
    .mobile-menu-close {
        display: block;
    }
    nav ul li a {
        font-size: 16px;
    }
    .main-container {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }
    .mobile-menu-btn {
        display: inline-block;
    }
    header {
        padding: 10px;
        flex-direction: row;
        justify-content: space-between;
    }
    header h1 {
        font-size: 18px;
    }
    .header-right span {
        font-size: 14px;
        margin-right: 5px;
    }
    .header-right button {
        padding: 6px 10px;
        font-size: 12px;
    }
    .stats-row, .content-row {
        gap: 10px;
    }
    .card {
        padding: 15px;
        transition: none !important; /* Ensure cards are static on phones */
    }
    .card:hover {
        transform: none !important; /* Remove hover effect */
    }
    .card h3 {
        font-size: 16px;
    }
    .card p {
        font-size: 20px;
    }
    .card small {
        font-size: 12px;
    }
    .card.large canvas {
        max-height: 200px;
        width: 100%;
        height: auto; /* Ensure canvas scales properly */
    }
    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 8px;
        min-width: 100px;
    }
    .product-info h4 {
        font-size: 18px;
    }
    .product-info p {
        font-size: 14px;
    }
    .add-to-cart, .buy-now {
        padding: 8px 15px;
        font-size: 12px;
    }
    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    footer {
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 16px;
    }
    .header-right button {
        padding: 5px 8px;
    }
    .card {
        padding: 10px;
        transition: none !important; /* Ensure cards are static on small phones */
    }
    .card:hover {
        transform: none !important; /* Remove hover effect */
    }
    .card h3 {
        font-size: 14px;
    }
    .card p {
        font-size: 18px;
    }
}

/* New Button Styling for help-card */
.help-card[data-type="help"] button {
    background: linear-gradient(45deg, #00B8E6, #007ACC);
    border: none;
    padding: 8px 15px;
    color: #FFFFFF; /* Default color, overridden by inline aqua */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    margin-top: 10px;
    width: auto; /* Allow natural width */
}

.help-card[data-type="help"] button:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(45deg, #00D4FF, #005F99);
}

/* Ensure aqua color from inline style is respected */
.help-card[data-type="help"] button {
    color: aqua !important;
}

/* Responsive Adjustments for the button */
@media (max-width: 768px) {
    .help-card[data-type="help"] button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .help-card[data-type="help"] button {
        padding: 5px 8px;
        font-size: 10px;
    }
}


/* Custom layout for BYBIT card */
.bybit-card-content {
    padding: 15px;
    background: linear-gradient(135deg, #252D4A, #1A3C6D);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bybit-card-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.bybit-card-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.bybit-card-text {
    flex: 1;
    text-align: left;
}

.bybit-card-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #00D4FF;
    margin-bottom: 5px;
}

.bybit-card-text h4 {
    font-size: 14px;
    color: #E0E0E0;
    line-height: 1.5;
    margin: 0;
}

.bybit-card-button .view-strategy-btn {
    margin: 0;
    max-width: 120px;
    padding: 8px 16px;
    font-size: 14px;
}

/* Responsive adjustments for tablets (max-width: 768px) */
@media (max-width: 768px) {
    .bybit-card-layout {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .bybit-card-text {
        text-align: center;
    }
    .bybit-card-image img {
        width: 50px;
        height: 50px;
    }
    .bybit-card-text h3 {
        font-size: 18px;
    }
    .bybit-card-text h4 {
        font-size: 12px;
    }
    .bybit-card-button .view-strategy-btn {
        max-width: 100px;
        padding: 6px 12px;
        font-size: 12px;
        transition: none;
        box-shadow: none;
    }
    .bybit-card-button .view-strategy-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Responsive adjustments for mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    .bybit-card-content {
        padding: 10px;
    }
    .bybit-card-layout {
        gap: 8px;
    }
    .bybit-card-image img {
        width: 40px;
        height: 40px;
    }
    .bybit-card-text h3 {
        font-size: 16px;
    }
    .bybit-card-text h4 {
        font-size: 10px;
    }
    .bybit-card-button .view-strategy-btn {
        max-width: 90px;
        padding: 5px 10px;
        font-size: 10px;
        transition: none;
        box-shadow: none;
    }
    .bybit-card-button .view-strategy-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    margin: 0; /* Remove any default margins */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px; /* Match main menu padding */
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%; /* Ensure full width like other items */
    box-sizing: border-box; /* Include padding in width */
}

.dropdown-toggle:hover {
    background: #1e4a7b;
    border-radius: 5px;
    color: #00D4FF;
}

.dropdown-menu {
    display: none;
    position: relative;
    background: #173a6a; /* Match sidebar background */
    border-radius: 5px;
    margin: 0 0 0 15px; /* Reduced indent, no top/bottom gap */
    padding: 0; /* Remove padding to tighten layout */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li {
    margin: 0; /* Remove default list margins */
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px; /* Slightly more padding than main items */
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s;
    width: 100%; /* Full width for consistency */
    box-sizing: border-box;
}

.dropdown-menu li a:hover {
    background: #1e4a7b;
    color: #00D4FF;
    border-radius: 5px;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown-icon.active {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .dropdown-menu {
        margin: 0 0 0 10px; /* Less indent on mobile */
        background: #1e4a7b;
    }
    .dropdown-menu li a {
        padding: 6px 15px; /* Match main menu mobile padding */
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        margin: 0 0 0 8px; /* Minimal indent on small screens */
    }
    .dropdown-menu li a {
        padding: 12px 15px; /* Match main menu small screen padding */
        font-size: 15px;
    }
}

/* Existing nav styles (move these too if not already in styles.css) */
nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s;
}

nav ul li a.active {
    background: linear-gradient(90deg, #00B8E6, #007ACC);
    color: #ffffff;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
}

nav ul li a:not(.active):hover {
    background: #1e4a7b;
    border-radius: 5px;
    color: #00D4FF;
    width: 100%;
}

nav ul li a.view-strategy-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: none;
}

@media (max-width: 768px) {
    nav ul li a.active {
        background: #007ACC;
        padding: 8px 15px;
    }
    nav ul li a:not(.active):hover {
        background: #1e4a7b;
        padding: 8px 15px;
    }
    .mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    nav ul li a.active {
        padding: 6px 15px;
    }
    nav ul li a:not(.active):hover {
        padding: 6px 15px;
    }
}

.mobile-only {
    display: none;
}
