/*
 * /assets/css/cloudvot.css
 * Variables globales y estilos base del sistema CloudVOT
 * Este archivo contiene las variables CSS, estilos base, tipografia y clases utilitarias
 */

:root {
    --primary-blue: #0d6efd;
    --dark-blue: #0a58ca;
    --light-blue: #cfe2ff;
    --hover-blue: #0b5ed7;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== CARDS GLOBALES ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
    border: none;
}

/* ===== TIPO REPORTE SELECTOR ===== */
.tipo-reporte {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.tipo-reporte:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
    transform: translateY(-3px);
}

.tipo-reporte.selected {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.2);
}

.filtros-section {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-blue);
}

/* ===== BOTONES GLOBALES ===== */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* ===== FORMULARIOS GLOBALES ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.required {
    color: #dc3545;
}

/* Formulario floating y estilos de input */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: white;
}

.form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===== TABLAS GLOBALES ===== */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: var(--light-blue);
}

/* ===== BADGES ===== */
.badge-role {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.badge-admin_general,
.badge-administrador {
    background-color: #8B0000;
    color: #fff;
}

.badge-estratega {
    background-color: #4A0080;
    color: #fff;
}

.badge-candidato {
    background-color: var(--primary-blue);
    color: #fff;
}

.badge-coordinador {
    background-color: #00796B;
    color: #fff;
}

.badge-lider {
    background-color: #2E7D32;
    color: #fff;
}

.badge-asistente_call_center {
    background-color: #E65100;
    color: #fff;
}

.badge-basico {
    background-color: #6c757d;
    color: #fff;
}

.badge-activo {
    background-color: #28a745;
    color: #fff;
}

.badge-inactivo {
    background-color: #6c757d;
    color: #fff;
}

.badge-con-lider {
    background-color: var(--primary-blue);
    color: #fff;
}

.badge-sin-lider {
    background-color: #6c757d;
    color: #fff;
}

/* ===== MENSAJES FLASH ===== */
.alert {
    border-radius: 10px;
    border: none;
}

/* ===== NOTIFICACIONES APP ===== */
.app-message-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.app-message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.app-message.show {
    opacity: 1;
    transform: translateX(0);
}

.app-message-success { background: #198754; }
.app-message-error { background: #dc3545; }
.app-message-warning { background: #ffc107; color: #333; }
.app-message-info { background: var(--primary-blue); }

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ===== PAGINACION ===== */
.pagination .page-link {
    color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ===== TRANSICIONES GLOBALES ===== */
.dropdown-menu {
    background-color: white;
    border: 1px solid var(--light-blue);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.dropdown-item:hover {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main-content-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.main-content-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 992px) {
    .main-content-wrapper {
        margin-left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 768px) {
    .main-content-wrapper {
        margin-left: 0 !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.cursor-pointer { cursor: pointer; }
.form-inline { display: inline; }
.hide-by-default { display: none; }
.icon-md { font-size: 2rem; }
.icon-lg { font-size: 3rem; }
.icon-xl { font-size: 4rem; }
.text-primary-blue { color: var(--primary-blue); }
.text-muted-secondary { color: #6c757d; }
.hero-offset { margin-top: 76px; }

/*
 * /assets/css/cloudvot.css
 * Proposito: Variables globales, estilos base, cards, botones, formularios, tablas y badges
 * Rol en el sistema: CSS base compartido por todos los modulos del sistema CloudVOT
 */
