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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Code Pro', 'Courier New', monospace;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 5rem 1rem;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Unified Section Styling */
.section {
    max-width: none;
    margin: 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.about-section h2,
.performance-section h2,
.contact-section h2,
.summary-section h2,
.position-summary-section h2,
.bot-details-section h2 {
    text-align: center;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.position-summary-section h3 {
    color: #5dade2;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.profit-card {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #404040;
}

.profit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

.profit-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profit-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profit-item {
    background: #3a3a3a;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    border-left: 4px solid #5dade2;
}

.profit-item.positive {
    background: #1e4d3a;
    border-left-color: #2ecc71;
    color: #2ecc71;
}

.profit-item.negative {
    background: #4d1e2a;
    border-left-color: #e74c3c;
    color: #e74c3c;
}

.total-profit {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.total-profit.positive {
    background: #1e4d3a;
    color: #2ecc71;
}

.total-profit.negative {
    background: #4d1e2a;
    color: #e74c3c;
}

/* Position-specific styles */
.no-positions {
    text-align: center;
    padding: 40px 20px;
    color: #aaaaaa;
    font-style: italic;
}

.profit-item-large {
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
    color: white;
    margin: 10px 0;
}

.profit-item-large.positive {
    background: #2ecc71;
}

.profit-item-large.negative {
    background: #e74c3c;
}

.total-card {
    border: 3px solid #5dade2;
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
}

.total-card h3 {
    color: #5dade2;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grand Total Card */
.profit-card.grand-total {
    border: 3px solid #9b59b6;
    background: linear-gradient(135deg, #3a2a4a 0%, #4a3a5a 100%);
    transform: scale(1.02);
}

.profit-card.grand-total h3 {
    color: #bb7dd1;
    font-size: 1.5rem;
    font-weight: 600;
}

.profit-card.grand-total .total-profit {
    font-size: 1.4rem;
    font-weight: 700;
}

.bot-count {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #aaaaaa;
    text-align: center;
}

/* Summary Tabs */
.summary-tabs {
    background: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #404040;
}

.summary-tab-headers {
    display: flex;
    background: #3a3a3a;
    border-bottom: 1px solid #555555;
}

.summary-tab-header {
    padding: 15px 25px;
    cursor: pointer;
    background: #3a3a3a;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #aaaaaa;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-tab-header:hover {
    background: #4a4a4a;
    color: #ffffff;
}

.summary-tab-header.active {
    background: #2d2d2d;
    color: #ffffff;
    border-bottom: 3px solid #888888;
}

.summary-tab-content {
    padding: 30px;
    background: #2d2d2d;
}

.summary-tab-pane {
    display: none;
}

.summary-tab-pane.active {
    display: block;
}

/* Bot Details Section */

/* Tabs */
.tabs {
    background: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #404040;
}

.tab-headers {
    display: flex;
    background: #3a3a3a;
    border-bottom: 1px solid #555555;
    overflow-x: auto;
}

.tab-header {
    padding: 15px 25px;
    cursor: pointer;
    background: #3a3a3a;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #aaaaaa;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-header:hover {
    background: #4a4a4a;
    color: #ffffff;
}

.tab-header.active {
    background: #2d2d2d;
    color: #ffffff;
    border-bottom: 3px solid #888888;
}

.tab-content {
    padding: 30px;
    background: #2d2d2d;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sub-tabs for variants */
.sub-tabs {
    margin-bottom: 20px;
}

.sub-tab-headers {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sub-tab-header {
    padding: 10px 20px;
    cursor: pointer;
    background: #3a3a3a;
    border: 2px solid #555555;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #aaaaaa;
    transition: all 0.3s ease;
}

.sub-tab-header:hover {
    background: #4a4a4a;
    color: #ffffff;
}

.sub-tab-header.active {
    background: #888888;
    color: white;
    border-color: #888888;
}

.sub-tab-content {
    border: none;
    border-radius: 8px;
    padding: 0;
    background: #333333;
}

.sub-tab-pane {
    display: none;
}

.sub-tab-pane.active {
    display: block;
}

/* Tables */
.data-section {
    padding: 20px;
}

.data-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 500;
    border-bottom: 2px solid #888888;
    padding-bottom: 5px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #2d2d2d;
    font-size: 0.9rem;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #555555;
}

th {
    background: #3a3a3a;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

tr:hover {
    background: #3a3a3a;
}

td.number {
    text-align: center;
    font-family: 'Courier New', monospace;
}

td.positive {
    color: #2ecc71;
    font-weight: 500;
}

td.negative {
    color: #e74c3c;
    font-weight: 500;
}

/* Daily profit column conditional colors only */
.data-table td.daily-profit.positive {
    color: #2ecc71 !important;
    font-weight: 500;
}

.data-table td.daily-profit.negative {
    color: #e74c3c !important;
    font-weight: 500;
}

/* Positions table specific styling */
.symbol-cell {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
    max-width: 200px;
}

#positions-table-container {
    margin-top: 30px;
    margin-bottom: 40px;
}

#bots-table-container {
    max-width: 800px;
    width: fit-content;
}

#bots-table {
    width: fit-content;
}

#bots-table table {
    width: auto;
}

#positions-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#positions-table table th:first-child,
#positions-table table td:first-child {
    width: 200px; /* Fixed width for symbol column */
}

#positions-table table th,
#positions-table table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #555555;
}

#positions-table table th {
    background-color: #3a3a3a;
    color: #ffffff;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 1024px) {

    .bot-details-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .profit-cards {
        grid-template-columns: 1fr;
    }

    .tab-headers {
        flex-direction: column;
    }

    .tab-header {
        text-align: center;
    }

    .sub-tab-headers {
        flex-direction: column;
    }

    .tab-content {
        padding: 15px;
    }

    th, td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Mobile Navigation */
    .nav-menu.desktop-menu {
        display: none !important;
    }

    /* Hide chart expand buttons on smaller screens */
    .expand-chart-button {
        display: none !important;
    }

    /* Enhanced positions table scroll for mobile */
    #positions-table-container .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #555555;
        border-radius: 8px;
        position: relative;
    }

    #positions-table-container .table-container::-webkit-scrollbar {
        height: 8px;
    }

    #positions-table-container .table-container::-webkit-scrollbar-track {
        background: #2d2d2d;
        border-radius: 4px;
    }

    #positions-table-container .table-container::-webkit-scrollbar-thumb {
        background: #555555;
        border-radius: 4px;
    }

    #positions-table-container .table-container::-webkit-scrollbar-thumb:hover {
        background: #666666;
    }

    /* Add scroll indicator for positions table */
    #positions-table-container .table-container::after {
        content: "← Scroll horizontally to view more columns →";
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        color: #888888;
        font-size: 0.75rem;
        white-space: nowrap;
        pointer-events: none;
    }

    /* Adjust status panel for mobile */
    .status-panel {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        min-width: 160px;
        font-size: 0.85rem;
    }

    .status-panel .mode-indicator {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .status-panel .connection-status {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .status-panel .last-updated {
        font-size: 0.7rem;
    }
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #aaaaaa;
    font-style: italic;
}

/* Error state */
.error {
    background: #4d1e2a;
    color: #e74c3c;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #7a2636;
}

/* Status Panel - Top Bar */
.status-panel {
    height: 30px;
    background: rgba(45, 45, 45, 0.95);
    border-bottom: 2px solid #555555;
    padding: 6px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-panel .mode-indicator {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 20px;
}

.status-panel .mode-indicator.live {
    color: #ffffff;
}

.status-panel .mode-indicator.paper {
    color: #3498db;
}

.status-panel .connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.status-panel .connection-status.connected {
    color: #ffffff;
}

.status-panel .connection-status.disconnected {
    color: #ffffff;
}

.status-panel .last-updated {
    color: #cccccc;
    font-style: italic;
}

.status-panel .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-panel .status-dot.connected {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.status-panel .status-dot.disconnected {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}

/* Status panel background colors */
.status-panel.connected {
    background: rgba(27, 153, 85, 0.95);
    border-bottom-color: #1b9955;
}

.status-panel.disconnected {
    background: rgba(231, 76, 60, 0.9);
    border-bottom-color: #e74c3c;
}

/* Status indicators (legacy - keeping for compatibility) */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.active {
    background: #2ecc71;
}

.status-indicator.inactive {
    background: #e74c3c;
}

/* Variant info */
.variant-info {
    background: #333333;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #888888;
    border: 1px solid #555555;
}

.variant-info h5 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.variant-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #cccccc;
}

.variant-info .highlight {
    font-weight: 600;
    color: #ffffff;
}

/* Navigation Styles */
.main-nav {
    background: transparent;
    border-bottom: 3px solid #555555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: static;
    padding: 0 1rem;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 70px;
}

.nav-brand h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Desktop Navigation */
.nav-menu.desktop-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Hide desktop menu on mobile by default - will be overridden on larger screens */
@media (max-width: 768px) {
    .nav-menu.desktop-menu {
        display: none !important;
    }
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #333;
}

.user-info {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.auth-link {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
}

.nav-link {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff;
    background: #555555;
    box-shadow: 0 4px 8px rgba(85, 85, 85, 0.3);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    position: relative;
}

/* Responsive Navigation Rules */
@media (max-width: 768px) {
    .nav-menu.desktop-menu {
        display: none !important;
    }

    .hamburger-menu {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .nav-menu.desktop-menu {
        display: flex !important;
    }

    .hamburger-menu {
        display: none !important;
    }
}

.hamburger-toggle {
    display: none;
}

.hamburger-button {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hamburger Animation */
.hamburger-toggle:checked + .hamburger-button {
    background-color: rgba(255, 255, 255, 0.2);
}

.hamburger-toggle:checked + .hamburger-button .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-toggle:checked + .hamburger-button .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle:checked + .hamburger-button .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Menu */
.nav-menu.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 20px;
    min-width: 200px;
    max-width: calc(100vw - 20px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    margin-top: 5px;
    /* Ensure menu stays within viewport */
    transform: translateX(0);
}

.hamburger-toggle:checked ~ .nav-menu.mobile-menu {
    display: flex;
}

.nav-menu.mobile-menu .nav-auth {
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #555555;
}

.nav-menu.mobile-menu .nav-link {
    padding: 10px;
    margin: 0;
    text-align: center;
    border-radius: 4px;
}

.nav-menu.mobile-menu .user-info {
    text-align: center;
    padding: 5px;
    font-size: 0.8rem;
}


/* Homepage Styles */
.homepage-container {
    min-height: calc(100vh - 70px);
}

.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #555555 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #ecf0f1;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */


.about-content {
    max-width: none;
    margin: 0;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.about-content p {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

/* Technology Section */
.technology-section {
    background: #2d2d2d;
    padding: 80px 20px;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

.technology-section h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 300;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    background: #3a3a3a;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #555555;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #404040;
    border-color: #888888;
}

.tech-item h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.tech-item p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Performance Section */


.performance-chart-container {
    position: relative;
    display: flex;
    justify-content: center;
    max-width: none;
    margin: 0;
    width: 100%;
    min-height: 300px;
    aspect-ratio: 2 / 1;
}

.performance-chart {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* Expand Chart Button */
.expand-chart-button {
    position: absolute;
    top: 0px;
    right: 0px;
    background: rgba(85, 85, 85, 0.8);
    border: 1px solid #666666;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.expand-chart-button:hover {
    background: rgba(102, 102, 102, 0.95);
    border-color: #888888;
    transform: scale(1.1);
}

.expand-chart-button:active {
    transform: scale(0.95);
}

.expand-chart-button svg {
    width: 16px;
    height: 16px;
}

/* Chart Fullscreen Modal */
.chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.chart-modal-content {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    max-width: 95vw;
    max-height: 95vh;
    background: #2d2d2d;
    border: 2px solid #555555;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.chart-modal-content canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Close Chart Button */
.close-chart-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(85, 85, 85, 0.8);
    border: 1px solid #666666;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
}

.close-chart-button:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: #e74c3c;
    transform: scale(1.1);
}

.close-chart-button:active {
    transform: scale(0.95);
}

.close-chart-button svg {
    width: 16px;
    height: 16px;
}

/* Modal animations */
.chart-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Section */


/* Debug Section */
.debug-section {
    padding: 48px 20px;
    background: #2a2a2a;
    border-top: 1px solid #404040;
}

.debug-section h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 300;
}

.debug-content {
    max-width: 1000px;
    margin: 0 auto;
}

.debug-content .table-container {
    background: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #404040;
    padding: 20px;
    overflow-x: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: none;
    margin: 0;
}

.contact-info h3,
.contact-form-container h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 500;
}

.contact-info p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-form {
    background: #3a3a3a;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #555555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: #2d2d2d;
    border: 1px solid #555555;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #888888;
    box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2);
}

.contact-form button {
    background: #555555;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    background: #666666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(85, 85, 85, 0.3);
}

/* Footer */
.main-footer {
    background: transparent;
    padding: 30px 20px;
    text-align: center;
    color: #bdc3c7;
    border-top: 3px solid #555555;
}

/* Responsive Design for Homepage */
@media (max-width: 1024px) {
    /* Navigation is handled by hamburger menu, no need to stack */
    .nav-container {
        padding: 15px 0;
    }
}

/* Additional mobile navigation improvements */
@media (max-width: 480px) {

    .bot-details-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-menu.mobile-menu {
        right: 10px;
        left: auto;
        min-width: auto;
        width: auto;
        max-width: calc(100vw - 20px);
    }

    .nav-container {
        padding: 10px 0px;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .performance-chart-container {
        padding: 20px;
    }

    .performance-chart {
        max-width: 100%;
    }
}

/* Account Page Styles */
.account-container {
    min-height: calc(100vh - 70px);
    padding: 0;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}

.portfolio-section h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.metric-card {
    background: #2d2d2d;
    padding: 25px;
    text-align: center;
    border-right: 1px solid #404040;
}

.metric-card:last-child {
    border-right: none;
}

.metric-card h3 {
    color: #bdc3c7;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}

.metric-value.positive {
    color: #2ecc71;
}

.metric-value.negative {
    color: #e74c3c;
}

.metric-percentage {
    font-size: 1rem;
    font-weight: 500;
}

.metric-percentage.positive {
    color: #2ecc71;
}

.metric-percentage.negative {
    color: #e74c3c;
}

.metric-label {
    font-size: 0.9rem;
    color: #888888;
    font-weight: 400;
}

/* Portfolio Chart */
.portfolio-chart-container {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #404040;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.portfolio-chart {
    width: 100%;
    max-width: 900px;
    /* height: auto; */
    aspect-ratio: 2/1;
}

/* Performance Summary */
.performance-summary {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #404040;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.performance-summary h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #404040;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #bdc3c7;
    font-weight: 500;
}

.summary-value {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Source Code Pro', monospace;
}

.summary-value.positive {
    color: #2ecc71;
}

.summary-value.negative {
    color: #e74c3c;
}

/* Account Dashboard Specific Styles */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    aspect-ratio: 2 / 1;
    margin: 0;
    display: flex;
    justify-content: center;
}

#trades-chart {
    background: #2d2d2d;
    border-radius: 8px;
    width: 100%;
    /* max-width: 800px; */
    height: auto;
}

.table-summary {
    margin-top: 15px;
    padding: 10px;
    background: #3a3a3a;
    border-radius: 8px;
    border: 1px solid #555555;
}

.summary-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #bdc3c7;
    font-family: 'Source Code Pro', monospace;
}

.summary-stats span {
    padding: 5px 10px;
    background: #2d2d2d;
    border-radius: 4px;
    border: 1px solid #555555;
}

.no-positions {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-style: italic;
    background: #2d2d2d;
    border-radius: 8px;
    border: 1px solid #404040;
}

/* Data table styling for profits table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #555555;
}

.data-table th {
    background: #3a3a3a;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #555555;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #404040;
    font-family: 'Source Code Pro', monospace;
    color: #e0e0e0;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #3a3a3a;
}

/* Investor Percentages Section */
.investor-percentages-section {
    margin-bottom: 40px;
}

.investor-percentages-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 400;
    border-bottom: 2px solid #888888;
    padding-bottom: 10px;
}

#investor-percentages-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #555555;
    border-radius: 8px;
}

#investor-percentages-container::-webkit-scrollbar {
    width: 8px;
}

#investor-percentages-container::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

#investor-percentages-container::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

#investor-percentages-container::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Responsive Design for Account Page */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-chart-container {
        padding: 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Adjust status panel positioning for navigation */
.status-panel {
    top: 70px;
    position: fixed;
    right: 20px;
    left: auto;
    width: auto;
    min-width: 200px;
    border-radius: 8px;
}

#chart-loading-total-returns,
#chart-loading-strategy-returns,
#chart-loading-trades {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chart Loading Skeleton */
.chart-skeleton {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #2d2d2d;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chart-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
    z-index: 2;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-bars {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    padding: 20px;
    gap: 8px;
}

.skeleton-bar {
    flex: 1;
    background: #3a3a3a;
    border-radius: 4px 4px 0 0;
    min-width: 12px;
    max-width: 40px;
}

/* Hide conditions list from variant info */
/* .variant-info p:nth-of-type(3) { display: none; } */

/* #bot-menu {
    display: none;
} */