/* --- FUENTES Y VARIABLES GLOBALES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@700;900&display=swap');

:root {
    --bg-dark-blue: #0a0c1f;
    --bg-card: rgba(18, 23, 53, 0.5);
    --border-color: rgba(0, 246, 255, 0.2);
    --neon-cyan: #00f6ff;
    --neon-magenta: #e900ff;
    --text-primary: #e0e0e0;
    --text-secondary: #8c8ca0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- ESTILOS BASE --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-blue);
    background-image: 
        linear-gradient(rgba(0, 246, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 246, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    margin: 0;
}
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
a { color: var(--neon-cyan); text-decoration: none; }

/* --- HEADER --- */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.header h1 { margin: 0; font-family: var(--font-heading); font-size: 2rem; color: #fff; text-shadow: 0 0 10px var(--neon-cyan); }
.header .user-info { font-weight: 500; }
.header .user-info a { color: var(--neon-magenta); font-weight: bold; margin-left: 15px; }

/* --- TARJETAS (Glassmorphism) --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 25px;
    overflow: hidden;
}
.card-header {
    background-color: rgba(0, 246, 255, 0.05);
    padding: 15px 25px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
}
.card-body { padding: 25px; }

/* --- FORMULARIOS --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.form-control {
    width: 100%; padding: 12px;
    background-color: rgba(10, 12, 31, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 6px; box-sizing: border-box;
    color: var(--text-primary); font-size: 1rem;
}
.form-control:focus {
    outline: none; border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 246, 255, 0.3);
}

/* --- BOTONES --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border: 1px solid var(--neon-cyan); border-radius: 6px;
    font-weight: bold; cursor: pointer; text-decoration: none;
    transition: all 0.2s ease-in-out;
    background: transparent; color: var(--neon-cyan);
}
.btn:hover {
    background-color: var(--neon-cyan); color: var(--bg-dark-blue);
    box-shadow: 0 0 20px var(--neon-cyan); transform: translateY(-2px);
}
.btn-success { border-color: #28a745; color: #28a745; }
.btn-success:hover { background-color: #28a745; color: #fff; box-shadow: 0 0 20px #28a745; }
.btn-danger { border-color: var(--neon-magenta); color: var(--neon-magenta); }
.btn-danger:hover { background-color: var(--neon-magenta); color: #fff; box-shadow: 0 0 20px var(--neon-magenta); }

/* --- TABLAS --- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.table thead th { font-family: var(--font-heading); color: #fff; }
.license-key { font-family: 'Courier New', monospace; font-weight: bold; background: rgba(0, 246, 255, 0.1); padding: 3px 6px; border-radius: 4px; color: var(--neon-cyan); }
.badge { padding: 5px 10px; border-radius: 12px; color: #fff; font-size: 0.8rem; font-weight: 600; text-shadow: 0 0 5px; }
.badge-success { background-color: #28a745; } .badge-danger { background-color: #dc3545; } .badge-warning { background-color: #ffc107; color: #212529; }

/* --- PANELES DE LOGIN Y REGISTRO --- */
.login-container {
    width: 100%; max-width: 420px;
    padding: 20px; box-sizing: border-box;
}
.login-container .card-header { font-size: 1.5rem; text-align: center; }
.login-container .form-group .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.login-container .form-control { padding-left: 45px; }
.login-container .btn { width: 100%; justify-content: center; }

/* Otros */
.alert { padding: 15px;margin-bottom: 20px;border-radius: 6px; }
.alert-success { background-color: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.alert-danger { background-color: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; }
