:root {
    --primary: #3b82f6;
    --secondary: #00c2cb;
    --dark: #f8fafc; /* Color de texto en modo oscuro */
    --light: #1e293b; /* Fondo principal (Suavizado) */
    --white: #2c3e50; /* Fondo de tarjetas (Azul marino más suave) */
    --gray: #94a3b8; /* Texto secundario */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --bg-dark: #0a192f; /* Color oscuro real para gradientes */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Dashboard & Cards */
.container-fluid {
    padding: 20px;
}

.kanban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.employee-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    cursor: pointer;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.employee-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--light);
}

.employee-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.employee-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin { background: rgba(245, 54, 92, 0.1); color: var(--danger); }
.badge-tecnico { background: rgba(17, 205, 239, 0.1); color: var(--info); }
.badge-rrhh { background: rgba(45, 206, 137, 0.1); color: var(--success); }

/* Tabs */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-link.active {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

/* User Dropdown */
.user-menu-container {
    position: relative;
    cursor: pointer;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
}

.user-trigger:hover {
    background: rgba(255,255,255,0.2);
}

.user-trigger i {
    font-size: 1.4rem;
}

.user-dropdown {
    display: none; /* Asegura que inicie oculto */
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid #eee;
}

.user-dropdown.show {
    display: flex;
    flex-direction: column;
}

.user-dropdown a {
    padding: 12px 20px;
    text-decoration: none;
    color: #525f7f;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.user-dropdown a:hover {
    background: #f8f9fe;
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* Sidebar para filtros */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.sidebar-filters {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar-filters h4 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    color: #525f7f;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.filter-item:hover {
    background: #f8f9fe;
    color: var(--primary);
}

.filter-item.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.filter-item .count {
    font-size: 0.75rem;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
}
