/**
 * Estilos Base - Bot de Trading Javiland
 * Colores: #efede4, #003300, #cc9933, #990000, #000000
 */

:root {
    --color-cream: #efede4;
    --color-dark-green: #003300;
    --color-gold: #cc9933;
    --color-red: #990000;
    --color-black: #000000;
    --font-primary: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--color-cream) 0%, #f5f3e8 100%);
    color: var(--color-black);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Formularios de Login y Registro */
.login-form,
.register-form {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h1,
.register-form h1 {
    color: var(--color-dark-green);
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-dark-green);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-cream);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red) 0%, #aa0000 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #aa0000 0%, var(--color-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--color-dark-green);
    color: white;
}

.btn-secondary:hover {
    background: #004400;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    border-left: 4px solid var(--color-red);
    color: var(--color-red);
}

.alert-success {
    background: #efe;
    border-left: 4px solid var(--color-dark-green);
    color: var(--color-dark-green);
}

.alert-info {
    background: #eef;
    border-left: 4px solid var(--color-gold);
    color: var(--color-dark-green);
}

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

.info-box {
    background: var(--color-cream);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid var(--color-gold);
}

.info-box a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-cream);
}

.dashboard-header h1 {
    color: var(--color-dark-green);
    font-size: 32px;
}

.user-info {
    text-align: right;
}

.user-info p {
    margin: 5px 0;
    color: #666;
}

.user-info .admin-badge {
    display: inline-block;
    background: var(--color-gold);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-cream) 0%, #f5f3e8 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}

.stat-card h3 {
    color: var(--color-dark-green);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-red);
}

.stat-card .label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    color: var(--color-dark-green);
    margin-bottom: 20px;
    font-size: 24px;
}

.card {
    background: white;
    border: 1px solid var(--color-cream);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-cream);
}

.card-header h3 {
    color: var(--color-dark-green);
    font-size: 18px;
}

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

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-cream);
}

.table th {
    background: var(--color-cream);
    color: var(--color-dark-green);
    font-weight: 600;
}

.table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.status-paused {
    background: #fff3cd;
    color: #856404;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

/* Navegación */
.nav {
    background: var(--color-dark-green);
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.nav .nav-brand {
    font-weight: 700;
    color: white;
    margin-right: 1.5rem;
    pointer-events: none;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--color-gold);
}

.nav a.active {
    color: var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-form,
    .register-form {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        text-align: left;
        margin-top: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
}

