/*
==============================================
 File:        styles.css
 Author:      Irfan Gedik
 Created:     27.09.2025
 Last Update: 27.09.2025
 Version:     1.0

 Description:
   USDTgVerse Dashboard Styles
   
   Professional CSS styling for the USDTgVerse dashboard including:
   - Modern UI components
   - Responsive design
   - Dark/light themes
   - Animation effects
   - Professional color scheme

 License:
   MIT License
==============================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-header .logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #ffd700;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

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

.status-dot.online {
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

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

.section-header h2 {
    font-size: 1.75rem;
    color: #333;
}

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

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
}

.metric-content h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-change.positive {
    color: #28a745;
}

.metric-change.negative {
    color: #dc3545;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.chart-card canvas {
    max-height: 300px;
}

/* Transactions */
.transactions-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.transactions-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tx-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    color: white;
}

.tx-details {
    flex: 1;
}

.tx-type {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.tx-amount {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.tx-time {
    color: #999;
    font-size: 0.8rem;
}

.tx-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tx-status.success {
    background: #d4edda;
    color: #155724;
}

/* Tables */
.tokens-table,
.exchange-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.token-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.token-name {
    font-weight: 600;
    color: #333;
}

.token-symbol {
    font-size: 0.8rem;
    color: #666;
}

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

.change {
    font-weight: 500;
}

.change.positive {
    color: #28a745;
}

.change.negative {
    color: #dc3545;
}

.change.stable {
    color: #6c757d;
}

.market-cap,
.supply,
.volume {
    color: #666;
}

/* DEX Content */
.dex-content,
.cex-content,
.staking-content,
.governance-content,
.analytics-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pair-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.pair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pair-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pair-tokens {
    display: flex;
    gap: -10px;
}

.pair-tokens .token-logo {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    margin-left: -8px;
}

.pair-tokens .token-logo:first-child {
    margin-left: 0;
}

.pair-name {
    font-weight: 600;
    color: #333;
}

.pair-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.pair-liquidity,
.pair-volume {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Staking Pools */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pool-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease;
}

.pool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pool-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pool-name {
    font-weight: 600;
    color: #333;
}

.pool-apy {
    font-size: 1.5rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.pool-tvl {
    color: #666;
    margin-bottom: 1rem;
}

/* Governance */
.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proposal-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.proposal-title {
    font-weight: 600;
    color: #333;
}

.proposal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.proposal-status.active {
    background: #d4edda;
    color: #155724;
}

.proposal-description {
    color: #666;
    margin-bottom: 1rem;
}

.proposal-votes {
    margin-bottom: 1rem;
}

.vote-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.vote-for {
    height: 100%;
    background: linear-gradient(45deg, #28a745, #20c997);
}

.vote-counts {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.vote-counts .for {
    color: #28a745;
    font-weight: 500;
}

.vote-counts .against {
    color: #dc3545;
    font-weight: 500;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.analytics-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.health-metrics,
.security-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.health-item,
.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.health-item:last-child,
.security-item:last-child {
    border-bottom: none;
}

.health-label,
.security-label {
    color: #666;
}

.health-value {
    font-weight: 600;
    color: #333;
}

.security-status {
    font-weight: 500;
}

.security-status.active {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .pairs-grid,
    .pools-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}
