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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0e1a;
    color: #e0e0e0;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #0f1419;
    border-right: 1px solid #1a1f2e;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid #1a1f2e;
}

.logo h2 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons i {
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.social-icons i:hover {
    color: #fff;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-item:hover {
    background-color: #1a1f2e;
    color: #fff;
}

.nav-item.active {
    background-color: #1a1f2e;
    color: #fff;
    border-left: 3px solid #3b82f6;
}

.nav-item i {
    width: 18px;
    font-size: 16px;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    background-color: #0f1419;
    border-bottom: 1px solid #1a1f2e;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-bar {
    background-color: #1a1f2e;
    padding: 8px 15px;
    border-radius: 6px;
    width: 300px;
}

.search-bar i {
    color: #6b7280;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #e0e0e0;
    font-size: 14px;
}

.header-actions i {
    cursor: pointer;
    transition: color 0.2s;
}

.header-actions i:hover,
.header-actions span:hover {
    color: #fff;
    cursor: pointer;
}

/* Content Wrapper */
.content-wrapper {
    padding: 30px;
}

/* Top Section */
.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Stats Card */
.stats-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.token-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.token-info {
    flex: 1;
}

.token-info h3 {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.close-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    color: #fff;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item .label {
    font-size: 12px;
    color: #6b7280;
}

.stat-item .value {
    font-size: 13px;
    color: #e0e0e0;
    font-weight: 500;
}

.stat-item .date {
    font-size: 11px;
    color: #6b7280;
}

.analyze-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.analyze-btn:hover {
    opacity: 0.9;
}

/* Trades Card */
.trades-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.trade-header h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.trade-header p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 20px;
}

.trade-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trade-row {
    background-color: #1a1f2e;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.trade-row.sell {
    border-left: 3px solid #ef4444;
}

.trade-row.buy {
    border-left: 3px solid #10b981;
}

.badge {
    background-color: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge.buy {
    background-color: #10b981;
}

.trader {
    color: #3b82f6;
    font-weight: 500;
}

.detail {
    color: #9ca3af;
}

.percentage {
    color: #ef4444;
    font-weight: 500;
    margin-left: auto;
}

.percentage.green {
    color: #10b981;
}

/* Market History Section */
.market-history {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 13px;
    color: #6b7280;
}

.controls {
    margin-bottom: 15px;
}

.control-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Tables */
.table-wrapper {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #1a1f2e;
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    border-bottom: 1px solid #1a1f2e;
}

.data-table td {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid #1a1f2e;
}

.data-table tbody tr:hover {
    background-color: #1a1f2e;
}

.positive {
    color: #10b981;
}

.negative {
    color: #ef4444;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.time-selector {
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Activity Section */
.activity-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.activity-table {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.activity-table h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.activity-table p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
}

.badge-sm {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-sm.buy {
    background-color: #10b981;
    color: #fff;
}

.badge-sm.sell {
    background-color: #ef4444;
    color: #fff;
}

.exchange {
    background-color: #3b82f6;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Portfolio Section */
.portfolio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-card,
.transaction-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.portfolio-card h3,
.transaction-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.portfolio-item {
    background-color: #1a1f2e;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-item .label {
    font-size: 12px;
    color: #6b7280;
}

.portfolio-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.trading-buttons {
    display: flex;
    gap: 10px;
}

.trade-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trade-btn:hover {
    opacity: 0.9;
}

.buy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.sell-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.reset-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
}

/* Transaction History */
.transaction-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-transactions {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
    font-size: 14px;
}

.transaction-item {
    background-color: #1a1f2e;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    font-size: 13px;
}

.transaction-type {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.transaction-type.buy {
    background-color: #10b981;
    color: #fff;
}

.transaction-type.sell {
    background-color: #ef4444;
    color: #fff;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-amount {
    font-weight: 600;
    color: #fff;
}

.transaction-time {
    font-size: 11px;
    color: #6b7280;
}

.transaction-price {
    text-align: right;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trade-info {
    background-color: #1a1f2e;
    padding: 15px;
    border-radius: 6px;
}

.trade-info p {
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.trade-info p:last-child {
    margin-bottom: 0;
}

.trade-info strong {
    color: #fff;
    font-weight: 600;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.input-group input {
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quick-btn {
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background-color: #2d3748;
    border-color: #3b82f6;
}

.execute-trade-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.execute-trade-btn:hover {
    opacity: 0.9;
}

.execute-trade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1400px) {
    .activity-section {
        grid-template-columns: 1fr;
    }

    .portfolio-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .top-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar .nav-item span {
        display: none;
    }

    .logo h2 {
        font-size: 12px;
    }

    .main-content {
        margin-left: 60px;
    }

    .content-wrapper {
        padding: 15px;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
    }

    .trading-buttons {
        flex-direction: column;
    }
}

/* Additional Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-description {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Market Overview */
.market-overview {
    margin-bottom: 30px;
}

.market-overview h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-card .label {
    font-size: 12px;
    color: #6b7280;
}

.overview-card .value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* Crypto Table */
.crypto-table-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
}

.table-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #2d3748;
}

.filter-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-table thead {
    background-color: #1a1f2e;
}

.crypto-table th {
    padding: 15px;
    text-align: left;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    border-bottom: 1px solid #2d3748;
}

.crypto-table td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #1a1f2e;
}

.crypto-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.crypto-row:hover {
    background-color: #1a1f2e;
}

.crypto-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-name {
    font-weight: 600;
    color: #fff;
}

.crypto-symbol {
    font-size: 12px;
    color: #6b7280;
}

.crypto-price {
    font-weight: 600;
    color: #fff;
}

.trade-btn-sm {
    padding: 6px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.trade-btn-sm:hover {
    opacity: 0.9;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-bar {
    background-color: #1a1f2e;
    padding: 8px 15px;
    border-radius: 6px;
    width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    width: 100%;
    font-size: 14px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}

.search-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #1a1f2e;
}

.search-item:hover {
    background-color: #1a1f2e;
}

.search-info {
    flex: 1;
}

.search-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.search-symbol {
    font-size: 12px;
    color: #6b7280;
}

.search-price {
    font-weight: 600;
    font-size: 14px;
}

/* Live Trades */
.live-trades-section {
    margin-bottom: 30px;
}

.live-trades-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.trades-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
}

.live-trade-item {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.live-trade-item.buy {
    border-left: 3px solid #10b981;
}

.live-trade-item.sell {
    border-left: 3px solid #ef4444;
}

.trade-crypto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-name {
    font-weight: 600;
    color: #fff;
}

.trade-symbol {
    font-size: 12px;
    color: #6b7280;
}

.trade-details {
    font-size: 12px;
    color: #9ca3af;
}

.trade-exchange {
    background-color: #3b82f6;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.trade-time {
    font-size: 11px;
    color: #6b7280;
}

/* Historical Page */
.historical-section {
    margin-bottom: 30px;
}

.historical-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.historical-controls {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.crypto-select {
    min-width: 200px;
    padding: 10px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.crypto-select:hover {
    border-color: #3b82f6;
}

.crypto-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-refresh {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
    height: 42px;
}

.btn-refresh:hover {
    opacity: 0.9;
}

.btn-refresh i {
    font-size: 14px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.historical-info {
    margin-bottom: 20px;
}

/* Technical Indicators Section */
.indicators-section {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.indicators-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicators-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #9ca3af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    background-color: #2d3748;
    color: #fff;
}

.category-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.indicators-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #0f1419;
    border-radius: 6px;
}

.indicator-item {
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s;
}

.indicator-item:hover {
    border-color: #3b82f6;
    background-color: #1f2937;
}

.indicator-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.indicator-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.indicator-name {
    flex: 1;
    color: #e0e0e0;
    font-size: 13px;
}

.indicator-category {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.indicator-category.trend {
    background-color: #3b82f6;
    color: #fff;
}

.indicator-category.momentum {
    background-color: #10b981;
    color: #fff;
}

.indicator-category.volatility {
    background-color: #f59e0b;
    color: #fff;
}

.indicator-category.volume {
    background-color: #8b5cf6;
    color: #fff;
}

.indicator-category.support {
    background-color: #ec4899;
    color: #fff;
}

.indicator-category.pattern {
    background-color: #14b8a6;
    color: #fff;
}

/* Signals Panel */
.signals-panel {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2d3748;
}

.signals-panel h4 {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
}

#signalsList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-signals {
    text-align: center;
    color: #6b7280;
    padding: 20px;
    font-size: 13px;
}

.signal-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid;
    animation: slideInSignal 0.3s ease;
}

@keyframes slideInSignal {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.signal-item.buy {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.signal-item.sell {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.signal-type {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    min-width: 50px;
}

.signal-type.buy {
    background-color: #10b981;
    color: #fff;
}

.signal-type.sell {
    background-color: #ef4444;
    color: #fff;
}

.signal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.signal-details strong {
    color: #fff;
}

.signal-details span {
    color: #9ca3af;
    font-size: 12px;
}

.signal-value {
    color: #3b82f6 !important;
    font-weight: 600;
}

#oscillatorChartContainer {
    margin-top: 20px;
}

#oscillatorChartContainer h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #9ca3af;
}

.info-badge {
    background-color: #1a1f2e;
    border-left: 3px solid #3b82f6;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 13px;
}

.info-badge i {
    color: #3b82f6;
    font-size: 16px;
}

.historical-stats {
    margin-top: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* Alerts Page */
.alerts-section {
    margin-bottom: 30px;
}

.alerts-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.alert-creation {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.alert-creation h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.alert-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
}

.form-input {
    padding: 10px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.alerts-list {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.alerts-list h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.alert-item {
    background-color: #1a1f2e;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-item.triggered {
    border: 1px solid #10b981;
}

.alert-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alert-status {
    color: #10b981;
    font-size: 12px;
}

.btn-remove {
    padding: 6px 12px;
    background-color: #ef4444;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.no-data {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

/* Support Page */
.support-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.support-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.support-card i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 15px;
}

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

.support-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: #1a1f2e;
    border: 1px solid #2d3748;
    color: #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #2d3748;
}

.faq-section {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.faq-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #1a1f2e;
    padding: 15px 0;
}

.faq-question {
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #3b82f6;
}

.faq-answer {
    color: #9ca3af;
    margin-top: 10px;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* API Page */
.api-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.api-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.api-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.code-block {
    background-color: #0f1419;
    border: 1px solid #1a1f2e;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
}

.code-block code {
    color: #10b981;
    font-size: 13px;
    line-height: 1.6;
}

.api-methods {
    list-style: none;
}

.api-methods li {
    padding: 10px 0;
    border-bottom: 1px solid #1a1f2e;
    color: #9ca3af;
}

.api-methods code {
    color: #3b82f6;
    font-family: 'Courier New', monospace;
}

/* Settings Page */
.settings-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-card {
    background-color: #151921;
    border: 1px solid #1a1f2e;
    border-radius: 8px;
    padding: 20px;
}

.settings-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.setting-item label {
    color: #9ca3af;
    font-size: 14px;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

.btn-danger {
    padding: 10px 20px;
    background-color: #ef4444;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Modal Updates */
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.execute-trade-btn.buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.execute-trade-btn.sell {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@media (max-width: 1200px) {
    .overview-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .alert-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .overview-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .trades-container {
        grid-template-columns: 1fr;
    }
}

/* Notification Animation */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.settings-notification {
    animation: slideIn 0.3s ease;
}

/* Data Source Info Box */
.settings-card small {
    display: block;
    margin-top: 4px;
}