/* Styles para SwingTrade SaaS */

.swingtrade-container {
    max-width: 1200px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Resumo de Estatísticas */
.swingtrade-stats-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.sucesso {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card.erro {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.stat-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 8px;
}

.stat-valor {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Tabela de Trades */
.swingtrade-tabela-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swingtrade-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.swingtrade-tabela thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.swingtrade-tabela th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swingtrade-tabela tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.swingtrade-tabela tbody tr:hover {
    background-color: #f9f9f9;
}

.swingtrade-tabela td {
    padding: 12px 15px;
    vertical-align: middle;
}

.trade-linha.positivo td {
    border-left: 3px solid #11998e;
}

.trade-linha.negativo td {
    border-left: 3px solid #ee0979;
}

.ativo-badge {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.resultado-valor {
    font-weight: bold;
    font-size: 14px;
}

.resultado-valor.positivo {
    color: #11998e;
}

.resultado-valor.negativo {
    color: #ee0979;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.status-aberto {
    background: #f39c12;
    color: white;
}

.status-fechado {
    background: #27ae60;
    color: white;
}

/* Admin Styles */
.swingtrade-admin-wrap {
    margin: 20px;
}

.swingtrade-stats-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box.sucesso {
    border-left-color: #11998e;
}

.stat-box.erro {
    border-left-color: #ee0979;
}

.stat-box.total {
    border-left-color: #f39c12;
}

.stat-box .stat-valor {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-box .stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.swingtrade-info-box,
.swingtrade-settings-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swingtrade-info-box h3,
.swingtrade-settings-card h2 {
    margin-top: 0;
    color: #333;
}

.swingtrade-info-box ul {
    list-style: none;
    padding: 0;
}

.swingtrade-info-box li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.swingtrade-info-box li:last-child {
    border-bottom: none;
}

.swingtrade-info-box code,
.swingtrade-settings-card code {
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.swingtrade-settings-card pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.5;
}

.swingtrade-settings-card pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .swingtrade-stats-resumo {
        grid-template-columns: repeat(2, 1fr);
    }

    .swingtrade-tabela th,
    .swingtrade-tabela td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .stat-valor {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .swingtrade-stats-resumo {
        grid-template-columns: 1fr;
    }

    .swingtrade-tabela-container {
        font-size: 12px;
    }
}
