/* ================================================================
   ESTILOS PARA VISTA DE GESTIÓN DE USUARIOS - ADMIN
   ================================================================ */

.admin-usuarios {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* HEADER */
.admin-usuarios .admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 30px;
}

.admin-usuarios .admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-usuarios .admin-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-usuarios .admin-header .btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* CONTENIDO */
.admin-usuarios .admin-content {
    padding: 0 20px;
}

/* ALERTAS */
.admin-usuarios .alert {
    border-radius: 8px;
    border: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.4s ease;
}

.admin-usuarios .alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 5px solid #667eea;
}

.admin-usuarios .alert-danger {
    background: #fff5f5;
    border-left: 5px solid #ef4444;
}

.admin-usuarios .alert-warning {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
}

.admin-usuarios .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TARJETAS DE ESTADÍSTICAS */
.admin-usuarios .stat-card {
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 0;
}

.admin-usuarios .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-usuarios .stat-card.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-usuarios .stat-card.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.admin-usuarios .stat-card.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.admin-usuarios .stat-card.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.admin-usuarios .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    min-width: 60px;
}

.admin-usuarios .stat-content h6 {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-usuarios .stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* FILTROS */
.admin-usuarios .card {
    border-radius: 12px;
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.admin-usuarios .card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.admin-usuarios .card-body {
    padding: 25px;
}

.admin-usuarios .card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 25px;
}

.admin-usuarios .form-label {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-usuarios .form-control,
.admin-usuarios .form-select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.admin-usuarios .form-control:focus,
.admin-usuarios .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* TABLA */
.admin-usuarios .table {
    font-size: 0.95rem;
}

.admin-usuarios .table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.admin-usuarios .table thead th {
    font-weight: 600;
    color: #374151;
    padding: 15px 12px;
    border: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-usuarios .table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.admin-usuarios .table tbody tr:hover {
    background-color: #f9fafb;
}

.admin-usuarios .table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    color: #374151;
}

/* BADGES */
.admin-usuarios .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.admin-usuarios .badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.admin-usuarios .badge.bg-success {
    background: #10b981 !important;
}

.admin-usuarios .badge.bg-danger {
    background: #ef4444 !important;
}

.admin-usuarios .badge.bg-warning {
    background: #f59e0b !important;
    color: white;
}

.admin-usuarios .badge.bg-info {
    background: #3b82f6 !important;
}

.admin-usuarios .badge.bg-secondary {
    background: #6b7280 !important;
}

/* BOTONES DE GRUPO */
.admin-usuarios .btn-group {
    display: flex;
    gap: 5px;
}

.admin-usuarios .btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid;
}

.admin-usuarios .btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.admin-usuarios .btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.admin-usuarios .btn-outline-warning {
    color: #f59e0b;
    border-color: #f59e0b;
}

.admin-usuarios .btn-outline-warning:hover {
    background: #f59e0b;
    color: white;
    transform: scale(1.05);
}

.admin-usuarios .btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
}

.admin-usuarios .btn-outline-danger:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.admin-usuarios .btn-outline-success {
    color: #10b981;
    border-color: #10b981;
}

.admin-usuarios .btn-outline-success:hover {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}

/* MODAL */
.admin-usuarios .modal {
    display: block;
    padding-right: 17px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.admin-usuarios .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 1050;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.admin-usuarios .modal-content {
    border-radius: 12px;
    border: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.admin-usuarios .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
    border-bottom: 0;
}

.admin-usuarios .modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

.admin-usuarios .modal-body {
    padding: 25px;
}

.admin-usuarios .form-control-plaintext {
    padding: 8px 0;
    color: #374151;
    font-weight: 500;
}

.admin-usuarios .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px 25px;
    background: #f9fafb;
}

.admin-usuarios .modal-footer .btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}

.admin-usuarios .modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 0;
    color: white;
}

.admin-usuarios .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* INFORMACIÓN DE PAGINACIÓN */
.admin-usuarios .text-center.mt-3 {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-top: 20px !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-usuarios .admin-header h1 {
        font-size: 1.5rem;
    }

    .admin-usuarios .stat-card {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }

    .admin-usuarios .stat-icon {
        min-width: unset;
    }

    .admin-usuarios .table {
        font-size: 0.8rem;
    }

    .admin-usuarios .table thead th {
        padding: 10px 8px;
    }

    .admin-usuarios .table tbody td {
        padding: 10px 8px;
    }

    .admin-usuarios .btn-group {
        flex-wrap: wrap;
    }

    .admin-usuarios .form-control,
    .admin-usuarios .form-select {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-usuarios {
        padding-bottom: 20px;
    }

    .admin-usuarios .admin-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .admin-usuarios .admin-header h1 {
        font-size: 1.2rem;
    }

    .admin-usuarios .stat-content h3 {
        font-size: 1.5rem;
    }

    .admin-usuarios .card-body {
        padding: 15px;
    }

    .admin-usuarios .row.g-3 {
        gap: 1rem !important;
    }

    .admin-usuarios .modal-dialog {
        width: 95%;
    }

    .admin-usuarios .table-responsive {
        overflow-x: auto;
    }

    .admin-usuarios .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* DARK MODE (Opcional) */
@media (prefers-color-scheme: dark) {
    .admin-usuarios {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .admin-usuarios .admin-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .admin-usuarios .card {
        background: #1f2937;
        color: #f3f4f6;
    }

    .admin-usuarios .card-header {
        background: #111827 !important;
        border-bottom-color: #374151;
    }

    .admin-usuarios .table {
        color: #f3f4f6;
    }

    .admin-usuarios .table thead {
        background: #111827;
    }

    .admin-usuarios .table tbody tr:hover {
        background-color: #374151;
    }

    .admin-usuarios .table tbody td {
        color: #e5e7eb;
    }

    .admin-usuarios .form-control,
    .admin-usuarios .form-select {
        background: #111827;
        color: #f3f4f6;
        border-color: #374151;
    }

    .admin-usuarios .form-control:focus,
    .admin-usuarios .form-select:focus {
        background: #111827;
        color: #f3f4f6;
    }

    .admin-usuarios .alert-info {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .admin-usuarios .form-control-plaintext {
        color: #f3f4f6;
    }

    .admin-usuarios .modal-footer {
        background: #111827;
        border-top-color: #374151;
    }

    .admin-usuarios .text-center.mt-3 {
        background: #1f2937;
    }
}
