/* === SISTEMA DE DISEÑO PROSEGUROS - PREMIUM === */
:root {
    --primary-color: #1e2a38;
    --accent-color: #00bcd4;
    --accent-dark: #0097a7;
    --accent-light: rgba(0, 188, 212, 0.1);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ff9800;
    --sidebar-width: 260px;
    --bg-light: #f4f7fa;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* Login (Special case, still centered) */
.login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Views */
.view {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.4s ease-out;
}

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

.container-main {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
#app-header {
    background: var(--accent-color);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.25);
    z-index: 999;
}

#welcome-message {
    font-weight: 600;
    color: white;
}

/* Dashboard Cards / Widgets */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.panel-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 160px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.panel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.panel-card-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    padding: 12px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
}

.panel-card-active .panel-card-icon.text-primary { color: #0d6efd !important; background: rgba(13, 110, 253, 0.1); }
.panel-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

/* Teal utility class for stat icons */
.bg-teal {
    background: var(--accent-color) !important;
    color: white !important;
}

/* Stats Widgets */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h4 { margin: 0; font-size: 0.8rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info .value { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
