/* BalanceWolf Pro - Protected Styles v1.2 */
/* WARNING: This file is protected by copyright. Unauthorized copying is prohibited. */

:root {
    --background: hsl(240, 10%, 3.9%);
    --foreground: hsl(0, 0%, 98%);
    --cyber-primary: hsl(191, 100%, 50%);
    --cyber-secondary: hsl(320, 100%, 50%);
    --cyber-dark: hsl(240, 73%, 6%);
    --cyber-navy: hsl(240, 50%, 18%);
    --cyber-purple: hsl(249, 100%, 84%);
    --cyber-success: hsl(144, 100%, 50%);
    --cyber-warning: hsl(51, 100%, 50%);
    --cyber-error: hsl(0, 100%, 67%);
}

/* Anti-copy protection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--cyber-dark) 0%, var(--cyber-navy) 50%, var(--cyber-dark) 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de fondo */
.bg-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.bg-orb-1 {
    top: 80px;
    left: 40px;
    width: 128px;
    height: 128px;
    background: var(--cyber-primary);
}

.bg-orb-2 {
    bottom: 160px;
    right: 80px;
    width: 160px;
    height: 160px;
    background: var(--cyber-secondary);
    animation-delay: 1s;
}

.bg-orb-3 {
    top: 50%;
    left: 33%;
    width: 96px;
    height: 96px;
    background: var(--cyber-success);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

/* Efectos neon */
.neon-text {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 20px currentColor;
}

.neon-border {
    box-shadow: 0 0 5px var(--cyber-primary), 0 0 10px var(--cyber-primary), inset 0 0 5px rgba(0, 245, 255, 0.1);
}

.cyber-gradient {
    background: linear-gradient(45deg, var(--cyber-primary), var(--cyber-secondary));
}

/* Animaciones */
.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--cyber-primary), 0 0 10px var(--cyber-primary); }
    to { box-shadow: 0 0 10px var(--cyber-primary), 0 0 20px var(--cyber-primary), 0 0 30px var(--cyber-primary); }
}

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

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hidden {
    display: none !important;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--cyber-purple);
}

.bottom-nav-item.active {
    color: var(--cyber-primary);
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main content */
.main-content {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Grid */
.grid {
    display: grid;
    gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 1024px) {
    .lg\\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.col-span-2 {
    grid-column: span 2;
}

/* Cards */
.card {
    padding: 16px;
    border-radius: 16px;
}

.stat-card {
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

.action-card {
    padding: 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--cyber-purple);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cyber-purple);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--cyber-primary);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.2);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 24px;
}

/* Typography */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors */
.text-primary { color: var(--cyber-primary); }
.text-purple { color: var(--cyber-purple); }
.text-secondary { color: var(--cyber-secondary); }
.text-success { color: var(--cyber-success); }
.text-warning { color: var(--cyber-warning); }
.text-error { color: var(--cyber-error); }
.text-gray { color: #9ca3af; }

.bg-success { background-color: var(--cyber-success); }
.bg-primary { background-color: var(--cyber-primary); }
.bg-warning { background-color: var(--cyber-warning); }
.bg-error { background-color: var(--cyber-error); }

/* Spacing */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mr-2 { margin-right: 8px; }
.ml-1 { margin-left: 4px; }

.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }

.space-x-2 > * + * { margin-left: 8px; }

/* Sizing */
.w-2 { width: 8px; }
.h-2 { height: 8px; }
.w-full { width: 100%; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }

/* Border radius */
.rounded { border-radius: 4px; }
.rounded-full { border-radius: 50%; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 8px;
}

th {
    font-weight: 600;
    color: var(--cyber-purple);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.border-b {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-gray-800 {
    border-color: rgba(255, 255, 255, 0.1);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--cyber-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-secondary);
}

/* Chart containers */
canvas {
    max-width: 100%;
    height: auto;
}

/* Range inputs */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--cyber-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px var(--cyber-primary);
}

input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--cyber-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px var(--cyber-primary);
}

/* File inputs */
input[type="file"] {
    color: white;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--cyber-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 12px;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--cyber-secondary);
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: var(--cyber-primary);
    width: 16px;
    height: 16px;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 80px;
}

/* Max height utilities */
.max-h-96 {
    max-height: 24rem;
}

.max-h-64 {
    max-height: 16rem;
}

/* Overflow utilities */
.overflow-y-auto {
    overflow-y: auto;
}

.overflow-hidden {
    overflow: hidden;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

/* Z-index utilities */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Shadow utilities */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .lg\\:grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    .container {
        padding: 0 12px;
    }
    
    .modal-content {
        padding: 16px;
        margin: 8px;
    }
    
    .navbar {
        padding: 8px 12px;
    }
    
    .action-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    
    .text-2xl { font-size: 20px; }
    .text-xl { font-size: 18px; }
    .text-lg { font-size: 16px; }
    
    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
}

/* Print styles */
@media print {
    * {
        display: none !important;
    }
    
    body::before {
        content: "Impresión no permitida";
        display: block !important;
        text-align: center;
        font-size: 24px;
        color: red;
        margin-top: 50px;
    }
}

/* Anti-debug protection */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Additional security */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Disable context menu on images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Disable highlighting */
::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}