/**
 * Dashboard Panels CSS - TRAXION
 * Solo colores y estilos de header unificados
 * Mantiene Bootstrap para layout
 */

/* ========== VARIABLES GLOBALES ========== */
:root {
    --accent-green: #B8D62E;
    --accent-green-dark: #9BC01E;
    --text-dark: #1e293b;
}

/* ========== HEADER UNIFICADO ========== */
.dashboard-header {
    margin-bottom: 18px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(34, 40, 50, 0.04);
    overflow: hidden;
}

.dashboard-header .header-bar {
    height: 8px;
    background: var(--accent-green);
}

.dashboard-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.dashboard-header .header-logo {
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dashboard-header .header-logo:hover {
    opacity: 0.8;
}

.dashboard-header .header-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-dark);
    font-size: 24px;
    text-align: center;
    flex: 1;
}

/* ========== PANELES CON ENCABEZADO VERDE ========== */
.panel-green > .panel-heading {
    background: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: white !important;
}

.panel-green > .panel-heading .panel-title {
    color: white !important;
}

/* Para paneles sin clase panel-heading (estilo Cruz Verde) */
.panel .panel-title-green {
    font-size: 16px;
    font-weight: 700;
    margin: -15px -15px 15px -15px;
    color: #ffffff;
    background: var(--accent-green);
    padding: 10px 15px;
    border-radius: 3px 3px 0 0;
}

/* ========== HOME - MODULE CARDS ========== */
.home-container {
    min-height: 100vh;
    padding: 20px;
}

.header-subtitle {
    font-size: 14px;
    color: #8B95A8;
    margin-top: 4px;
    text-align: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.module-card {
    background: #ffffff;
    border: 1px solid #e6e9eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(34, 40, 50, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 40, 50, 0.12);
    text-decoration: none;
    color: inherit;
}

.module-card:active {
    transform: translateY(-2px);
}

.module-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.module-icon {
    font-size: 28px;
    color: white;
}

.module-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.module-description {
    font-size: 14px;
    color: #8B95A8;
    margin: 0;
    line-height: 1.5;
}

.module-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
}

.module-arrow i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.module-card:hover .module-arrow i {
    transform: translateX(4px);
}

/* Colores de iconos por módulo */
.bg-cruz-verde { background: linear-gradient(135deg, #6da646, #B8D62E); }
.bg-kardex { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-monitoreo { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.bg-observacion { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bg-visita { background: linear-gradient(135deg, #10b981, #34d399); }
.bg-kraff { background: linear-gradient(135deg, #6366f1, #818cf8); }
.bg-incidente { background: linear-gradient(135deg, #ef4444, #f87171); }
.bg-face { background: linear-gradient(135deg, #ec4899, #f472b6); }
.bg-safetytrax { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.bg-visitasegura { background: linear-gradient(135deg, #14b8a6, #5eead4); }
