/* ============================================================
   DEV CORE SOLUTIONS FINTECH - PREMIUM DARK GLASSMORPHISM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Premium Dark */
    --primary-color: #38bdf8;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #1e1b4b 100%);
    --accent-color: #818cf8;
    
    --success-color: #34d399;
    --success-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
    --warning-color: #fbbf24;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-color: #f87171;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(15, 23, 42, 0.6);
    
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.12);
    --border-highlight: rgba(56, 189, 248, 0.3);
    
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 15px rgba(56, 189, 248, 0.4);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(129, 140, 248, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
    min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass-panel, .card, .dashboard-card, .form-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.card, .form-container, .dashboard-card {
    padding: 24px;
}

.card:hover, .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-highlight);
}

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

/* Layout General */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding: 30px 0 60px 0;
}

/* Header Principal */
.main-header {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-neon);
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
}

/* Tipografía */
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-muted); }

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--danger-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-secondary, .btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover, .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: #fff;
}

/* Formularios Inputs Glass */
.form-group {
    margin-bottom: 20px;
}

.form-label, label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-sub);
    font-size: 0.9rem;
}

.form-control, input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select option {
    background-color: var(--bg-body);
    color: #fff;
}

/* Tablas Modernas y Oscuras */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

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

.table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-sub);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Badges / Status */
.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success, .status-activo, .status-completado, .status-pagado {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning, .status-pendiente, .status-atraso {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger, .status-rechazado, .status-vencido {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info, .status-nuevo {
    background-color: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Alertas Glass */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Modales */
.modal-content {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-header .close, .btn-close {
    color: var(--text-muted);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-header .close:hover, .btn-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
}

/* Utilidades Adicionales */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.w-100 { width: 100%; }

/* Bootstrap compatibility for premium theme */
.bg-primary { background: var(--primary-gradient) !important; color: #fff !important; }
.bg-success { background: var(--success-gradient) !important; color: #fff !important; }
.bg-warning { background: var(--warning-gradient) !important; color: #fff !important; }
.bg-danger { background: var(--danger-gradient) !important; color: #fff !important; }
.bg-info { background: rgba(56, 189, 248, 0.2) !important; color: #7dd3fc !important; border: 1px solid rgba(56,189,248,0.4); }
.bg-dark { background: var(--bg-card) !important; backdrop-filter: blur(16px); }
.bg-light { background: rgba(255,255,255,0.05) !important; color: #fff !important; }
.text-white { color: #fff !important; }

/* Estilos para el Login */
.login-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    margin: 50px auto;
}
.login-logo { margin-bottom: 24px; display: flex; justify-content: center; }
.login-title { font-size: 1.5rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.login-subtitle { color: var(--text-sub); font-size: 0.95rem; margin-bottom: 32px; }
.login-btn { width: 100%; padding: 14px; font-size: 1rem; border-radius: 12px; }
.form-footer { margin-top: 32px; font-size: 0.85rem; color: var(--text-sub); border-top: 1px solid var(--border-color); padding-top: 24px; }
.form-footer a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.input-icon-wrapper { position: relative; }
.input-icon-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon-wrapper input { padding-left: 48px; }
