/* styles.css - Full Updated with Enhanced Mobile Responsiveness for Capex Trades */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for bottom nav on mobile */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 24px;
    background: linear-gradient(90deg, #00ffcc, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#nav-toggle {
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

#nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#nav-menu li a {
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    transition: background 0.3s;
}

#nav-menu li a:hover {
    background: #00ccff;
}

/* Welcome Animation */
.welcome {
    text-align: center;
    font-size: 32px;
    margin: 40px 0 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ffcc; }
    to { text-shadow: 0 0 20px #00ffcc, 0 0 30px #00ccff; }
}

/* Account Info */
.account-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    margin: 20px auto;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.4);
}

.account-info button {
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #00ccff, #00ffcc);
    color: #000;
    font-weight: bold;
    display: block;
}

.account-info button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

/* Alerts */
.alerts p {
    background: rgba(0, 255, 255, 0.15);
    padding: 20px;
    margin: 15px 10px;
    border-radius: 10px;
    border-left: 5px solid #00ffcc;
    animation: slideIn 1s ease-out forwards;
    opacity: 0;
}

.alerts p:nth-child(1) { animation-delay: 0.2s; }
.alerts p:nth-child(2) { animation-delay: 0.4s; }
.alerts p:nth-child(3) { animation-delay: 0.6s; }
.alerts p:nth-child(4) { animation-delay: 0.8s; }
.alerts p:nth-child(5) { animation-delay: 1s; }
.alerts p:nth-child(6) { animation-delay: 1.2s; }
.alerts p:nth-child(7) { animation-delay: 1.4s; }
.alerts p:nth-child(8) { animation-delay: 1.6s; }
.alerts p:nth-child(9) { animation-delay: 1.8s; }
.alerts p:nth-child(10) { animation-delay: 2s; }

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    border-top: 1px solid #00ccff;
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    padding: 10px;
    transition: all 0.3s;
}

.bottom-nav a.active {
    color: #00ffcc;
    transform: scale(1.1);
}

.bottom-nav i {
    font-size: 28px;
    margin-bottom: 5px;
}

/* Forms */
form {
    max-width: 95%;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(12px);
}

form input, form select {
    width: 100%;
    padding: 18px;
    margin: 15px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
}

form input::placeholder {
    color: #ccc;
}

form button {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    background: linear-gradient(45deg, #00ccff, #00ffcc);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.4);
}

/* Tables - Responsive Stack on Mobile */
.table-container {
    overflow-x: auto;
    margin: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

th {
    background: rgba(0, 204, 255, 0.3);
}

/* Mobile Table Stack */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 20px;
        border: 1px solid rgba(0, 255, 255, 0.3);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #00ffcc;
    }
}

/* Trade Records */
.running {
    background: rgba(255, 215, 0, 0.2);
    border-left: 5px solid gold;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
}

.profited {
    background: rgba(0, 255, 0, 0.2);
    border-left: 5px solid lime;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px; /* Above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 10000;
    background: linear-gradient(45deg, #00cc66, #00ff99);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.toast.error {
    background: linear-gradient(45deg, #ff3366, #ff6699);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #nav-toggle { display: block; }
    header h1 { font-size: 22px; }
    .welcome { font-size: 28px; margin: 30px 0 15px; }
    .account-info button { margin: 10px 0; }
    .alerts { padding: 0 10px; }
    form input, form select, form button { font-size: 16px; padding: 15px; }
}

@media (max-width: 480px) {
    header { padding: 10px; }
    .welcome { font-size: 24px; }
    .account-info { padding: 20px; }
    .bottom-nav i { font-size: 24px; }
}
/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #00ccff;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}

.warning-text {
    font-size: 18px;
    margin: 20px 0;
    color: #ffcc00;
    font-weight: bold;
}

.wallet-box {
    display: flex;
    margin: 20px 0;
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
}

.wallet-box input {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #00ffcc;
    font-family: monospace;
    font-size: 16px;
}

.wallet-box button {
    padding: 15px 20px;
    background: #00ccff;
    border: none;
    color: #000;
    cursor: pointer;
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00ccff, #00ffcc);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    margin-top: 20px;
}

.primary-btn:hover {
    transform: scale(1.03);
} 
.wallet-display {
    background: rgba(0, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.wallet-display h3 {
    margin-bottom: 15px;
    color: #00ffcc;
}

.wallet-box {
    display: flex;
    margin: 20px auto;
    max-width: 400px;
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
}

.wallet-box input {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #00ffcc;
    font-family: monospace;
    font-size: 16px;
    text-align: center;
}

.wallet-box button {
    padding: 15px 20px;
    background: #00ccff;
    border: none;
    color: #000;
    cursor: pointer;
}

.info-text {
    margin-top: 15px;
    font-size: 14px;
    color: #aaa;
}

.warning-text {
    color: #ffcc00;
    font-weight: bold;
    font-size: 18px;
} 
.records-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.record-btn {
    flex: 1;
    min-width: 200px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00ccff;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.record-btn:hover {
    background: rgba(0, 204, 255, 0.2);
    transform: translateY(-3px);
}

.record-btn.active {
    background: linear-gradient(45deg, #00ccff, #00ffcc);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

#records-content {
    margin-top: 20px;
} 
/* Partner Page Styles */
.partner-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.copy-box {
    display: flex;
    margin: 15px auto;
    max-width: 300px;
    background: #16213e;
    border-radius: 10px;
    overflow: hidden;
}

.copy-box input {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #00ffcc;
    font-family: monospace;
    text-align: center;
}

.copy-box button {
    padding: 15px 20px;
    background: #00ccff;
    border: none;
    color: #000;
    cursor: pointer;
}

.commission-balance {
    background: linear-gradient(135deg, rgba(0,204,255,0.2), rgba(0,255,204,0.2));
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #00ccff;
}

.commission-balance h3 {
    margin: 15px 0;
    color: #00ffcc;
    font-size: 32px;
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00ccff, #00ffcc);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    margin-top: 10px;
}

.primary-btn:hover {
    transform: scale(1.03);
}

/* Responsive Table - Turns into Cards on Mobile */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.responsive-table th {
    background: rgba(0, 204, 255, 0.3);
    padding: 15px;
    text-align: left;
    font-size: 16px;
}

.responsive-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

/* Mobile: Stack Table as Cards */
@media (max-width: 768px) {
    .partner-info {
        grid-template-columns: 1fr;
    }

    .responsive-table, 
    .responsive-table thead, 
    .responsive-table tbody, 
    .responsive-table th, 
    .responsive-table td, 
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive-table tr {
        margin-bottom: 20px;
        border: 1px solid rgba(0, 255, 255, 0.4);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.08);
        padding: 15px;
    }

    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
        padding: 15px;
    }

    .responsive-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        font-weight: bold;
        color: #00ffcc;
        text-align: left;
    }
} 
/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    border: 2px solid #00ccff;
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.5);
    animation: modalPop 0.4s ease-out;
}

.modal-content h3 {
    margin: 20px 0;
    color: #00ffcc;
    font-size: 24px;
}

.modal-content p {
    margin: 20px 0;
    font-size: 18px;
    color: #fff;
}

@keyframes modalPop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
} 
/* Sidebar Navigation (Hamburger Menu) */
header {
    position: relative;
    z-index: 1000;
}

#nav-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
}

#nav-toggle:hover {
    background: rgba(0, 204, 255, 0.2);
    transform: rotate(90deg);
}

/* Sidebar Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    animation: fadeIn 0.4s ease;
}

#sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden by default */
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.95), rgba(36, 36, 62, 0.95));
    border-right: 2px solid #00ccff;
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.4);
    transition: left 0.4s ease;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

#sidebar.active {
    left: 0;
}

#sidebar-overlay.active {
    display: block;
}

/* Sidebar Buttons */
.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-left: 4px solid transparent;
    border-radius: 0 15px 15px 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-btn i {
    font-size: 24px;
    color: #00ccff;
}

.sidebar-btn:hover {
    background: rgba(0, 204, 255, 0.2);
    border-left: 4px solid #00ffcc;
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4);
}

.sidebar-btn.active {
    background: linear-gradient(90deg, rgba(0, 204, 255, 0.4), rgba(0, 255, 204, 0.3));
    border-left: 4px solid #00ffcc;
    color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.sidebar-btn.active i {
    color: #00ffcc;
    animation: pulse 2s infinite;
}

/* Close Button */
#close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

#close-sidebar:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #sidebar {
        width: 280px;
        left: -280px;
    }
    
    .sidebar-btn {
        padding: 16px 18px;
        font-size: 17px;
    }
} 
.alerts {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.alerts h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #00ccff;
    font-size: 24px;
}

.alerts p {
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
    margin: 12px 0;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Different colors for deposit/withdraw */
.alerts p strong {
    color: #fff;
    font-size: 18px;
} 
.live-balance-card {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.15), rgba(0, 255, 204, 0.1));
    border: 2px solid #00ccff;
    border-radius: 20px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.4);
    backdrop-filter: blur(10px);
}

.live-balance-card h3 {
    color: #00ffcc;
    margin-bottom: 20px;
    font-size: 24px;
}

.balance-display h2 {
    font-size: 48px;
    color: #00ffcc;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
    transition: all 0.5s ease;
}

.balance-display p {
    font-size: 18px;
    color: #aaa;
}

.robot-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.robot-info p {
    margin: 12px 0;
    font-size: 16px;
}

#robot-status {
    color: #ffaa00;
    font-weight: bold;
} 
.profited {
    background: rgba(0, 255, 136, 0.15);
    border-left: 5px solid #00ff88;
}

.lost {
    background: rgba(255, 68, 68, 0.15);
    border-left: 5px solid #ff4444;
}

.lost td {
    color: #ff8888;
}

.profited td strong {
    color: #00ff88;
}

.lost td strong {
    color: #ff6666;
} 
.warning-card {
    background: rgba(255, 100, 100, 0.2);
    border: 2px solid #ff6666;
    border-radius: 15px;
    padding: 20px;
    margin: 25px auto;
    max-width: 600px;
    text-align: center;
    color: #ffaaaa;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.3);
}

.warning-card p {
    margin: 0;
    line-height: 1.6;
}

.warning-card i {
    margin-right: 10px;
    font-size: 24px;
}
/* Profit Celebration Modal */
.profit-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    max-width: 90%;
    border: 3px solid #00ffcc;
    box-shadow: 0 0 50px rgba(0, 255, 204, 0.8);
    animation: celebratePop 0.8s ease-out;
}

@keyframes celebratePop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.profit-modal h2 {
    color: #00ffcc;
    font-size: 32px;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
}
/* Market Closed Card - Weekend Message */
.market-closed-card {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 100, 0, 0.1));
    border: 2px solid #ffaa00;
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.4);
}

.market-closed-card h3 {
    color: #ffcc00;
    font-size: 26px;
    margin-bottom: 20px;
}

.market-closed-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}