﻿/* ===== CONTENEDOR GENERAL ===== */
.usuarios-container {
    margin-top: 20px;
}

/* ===== HEADER ===== */
.usuarios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.usuarios-title {
    font-weight: 700;
    color: #ffffff;
}

/* ===== BOTÓN CREAR ===== */
.btn-usuarios {
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.2), rgba(0, 0, 0, 0.6));
    color: #05AB9E;
    border: 1px solid rgba(5, 171, 158, 0.5);
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

    .btn-usuarios:hover {
        background: #05AB9E;
        color: #ffffff;
        box-shadow: 0 0 15px rgba(5, 171, 158, 0.6);
        border-color: #05AB9E;
    }

/* ===== ESTILOS PARA FORMULARIO GLASS (CREAR/EDITAR) ===== */
.form-glass-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7) 0%, rgba(5, 5, 5, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(5, 171, 158, 0.2);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.form-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #05AB9E, #02665e);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(5, 171, 158, 0.3) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #05AB9E !important;
    box-shadow: 0 0 15px rgba(5, 171, 158, 0.2) !important;
    color: #ffffff !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Para los Dropdowns Select */
.glass-input option {
    background-color: #111111;
    color: #ffffff;
}

/* Switch Glass estilo */
.glass-switch:checked {
    background-color: #05AB9E;
    border-color: #05AB9E;
    box-shadow: 0 0 15px rgba(5, 171, 158, 0.4);
}

/* ===== BOTONES DE FORMULARIO ===== */
.btn-save {
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.9), #034f49);
    color: #ffffff;
    border: 1px solid rgba(5, 171, 158, 0.8);
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-save:hover {
    background: #05AB9E;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(5, 171, 158, 0.6);
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #c4c4c4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
}

/* ===== GRID DE USUARIOS ===== */
.usuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.usuario-card-item {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 171, 158, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.usuario-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #05AB9E, #02665e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usuario-card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0px 15px 40px rgba(5, 171, 158, 0.2);
    border-color: rgba(5, 171, 158, 0.6);
}

.usuario-card-item:hover::before {
    opacity: 1;
}

.usuario-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.usuario-card-body h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.usuario-info {
    margin: 10px 0;
    font-size: 1rem;
    color: #c4c4c4;
    display: flex;
    align-items: center;
}

.usuario-info strong {
    color: #05AB9E;
    min-width: 80px;
}

.usuario-card-actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== BADGES ===== */
.badge-rol {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-activo {
    background-color: rgba(25, 135, 84, 0.15);
    color: #4ce59b;
    border: 1px solid rgba(25, 135, 84, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-inactivo {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b7b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== BOTONES ACCIONES ===== */
.btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Editar */
.btn-edit {
    border: 1px solid rgba(5, 171, 158, 0.5);
    color: #05AB9E;
    background: rgba(5, 171, 158, 0.1);
}

    .btn-edit:hover {
        background-color: #05AB9E;
        color: white;
        box-shadow: 0 0 10px rgba(5, 171, 158, 0.4);
    }

/* Ver */
.btn-details {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

    .btn-details:hover {
        background-color: #ffffff;
        color: #000;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    }

/* Eliminar */
.btn-delete {
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b7b;
    background: rgba(220, 53, 69, 0.1);
}

    .btn-delete:hover {
        background-color: #dc3545;
        color: white;
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    }



/* Flatpickr adaptado a nuestro Glass UI */
.flatpickr-calendar.dark {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 171, 158, 0.4) !important;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.6) !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.selected:focus, .flatpickr-day.selected:hover {
    background: #05AB9E !important;
    border-color: #05AB9E !important;
    box-shadow: 0 0 10px rgba(5, 171, 158, 0.6) !important;
    color: #fff !important;
}

.flatpickr-months .flatpickr-month, .flatpickr-weekdays {
    background: transparent !important;
}

span.flatpickr-weekday {
    color: #05AB9E !important;
    font-weight: 600;
}

/* ===== CLASES ADICIONALES PARA DETAILS ===== */
.card-centered-sm {
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
}



.profile-title-h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0 10px 0;
    letter-spacing: 0.5px;
}

.avatar-lg-neon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.2), rgba(0, 0, 0, 0.1));
    border: 2px solid rgba(5, 171, 158, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-lg {
    padding: 8px 16px !important;
    font-size: 12px !important;
    margin: 0 4px !important;
}

.hr-neon-faded {
    border: none !important;
    border-top: 1px solid rgba(5, 171, 158, 0.2) !important;
    margin: 20px 0 !important;
}

.lbl-mini-uppercase {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.val-large-neon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #05AB9E;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.usuario-nombre {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.imagen-preview {
    display: none;
    width: 100%;
    text-align: center;
}