.user-approval-container {
    padding: 24px;
    margin: 24px auto;
    max-width: 1280px;
}

.user-approval-container * {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--google-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: var(--google-on-surface);
}

.filters-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background-color: var(--google-background);
    border-bottom: 1px solid var(--google-border);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: var(--google-secondary);
    font-weight: 500;
}

.filter-select {
    min-width: 150px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--google-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--google-on-surface);
    background-color: var(--google-surface);
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.filter-select:hover {
    background-color: var(--google-hover);
}

.filter-select:focus {
    outline: none;
    border-color: var(--google-blue);
    box-shadow: 0 0 0 1px var(--google-blue);
}

.bulk-actions {
    padding: 16px 24px;
    background-color: var(--google-blue);
    color: var(--google-surface);
    display: none;
    align-items: center;
    justify-content: space-between;
}

.bulk-actions.active {
    display: flex;
}

.bulk-actions-text {
    font-size: 14px;
    font-weight: 500;
}

.bulk-actions-buttons {
    display: flex;
    gap: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    line-height: 1.2;
}

.user-login {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.2;
}

.uam-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.uam-btn {
    min-width: 60px;
    height: 24px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 500;
    line-height: 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-out;
    outline: none;
    font-family: inherit;
    display: inline-block;
    white-space: nowrap;
}

.uam-btn-approve {
    background-color: #137333;
    color: white;
}

.uam-btn-approve:hover {
    background-color: #0d652d;
}

.uam-btn-reject {
    background-color: #d93025;
    color: white;
}

.uam-btn-reject:hover {
    background-color: #c5221f;
}

.uam-btn-revoke {
    background-color: #f9ab00;
    color: #202124;
}

.uam-btn-revoke:hover {
    background-color: #ea8600;
}

.material-pagination {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--google-border);
}

.pagination-button,
.pagination-number {
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background-color: transparent;
    color: var(--google-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-button:hover,
.pagination-number:hover {
    background-color: var(--google-hover);
}

.pagination-number.active {
    background-color: var(--google-blue);
    color: var(--google-surface);
}

.pagination-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pagination-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--google-secondary);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.material-spinner {
    display: inline-block;
}

.material-spinner svg {
    width: 50px;
    height: 50px;
}

.circular {
    animation: rotate 2s linear infinite;
}

.path {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.uam-error {
    padding: 16px;
    background-color: var(--google-error-light);
    color: var(--google-error);
    border-radius: 4px;
    font-size: 14px;
    margin: 16px 0;
}

.uam-no-users {
    padding: 48px 24px;
    text-align: center;
    color: var(--google-secondary);
    font-size: 14px;
}

/* Estilos mejorados para la tabla */
.material-table-container {
    overflow-x: auto;
    background: var(--google-surface);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.material-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.material-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.material-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5f6368;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.material-table tbody tr {
    border-bottom: 1px solid #e8eaed;
    transition: background-color 0.2s ease;
}

.material-table tbody tr:hover {
    background-color: #f8f9fa;
}

.material-table tbody tr:last-child {
    border-bottom: none;
}

.material-table td {
    padding: 12px 16px;
    color: #202124;
    border-bottom: 1px solid #e8eaed;
    vertical-align: middle;
}

.material-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ajustes específicos para columnas */
.material-table .checkbox-column {
    width: 48px;
    text-align: center;
    padding: 8px;
    display: none; /* Ocultar temporalmente los checkboxes */
}

.material-table .user-column {
    min-width: 200px;
}

.material-table .email-column {
    min-width: 180px;
}

.material-table .role-column {
    min-width: 120px;
}

.material-table .status-column {
    min-width: 100px;
}

.material-table .date-column {
    min-width: 120px;
    white-space: nowrap;
}

.material-table .actions-column {
    min-width: 160px;
    text-align: right;
    padding-right: 16px;
    white-space: nowrap;
}

/* Estilos para checkbox cuando está visible */
.card-checkbox {
    display: inline-block;
}

.card-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Estilos específicos para el admin de WordPress */
.wp-admin .user-approval-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 20px 0;
}

.wp-admin .material-card {
    background: white;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.wp-admin .material-table-container {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
}

.wp-admin .card-header {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
}

.wp-admin .filters-container {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e1e1e1;
    padding: 15px 20px;
}

/* Mejoras adicionales para la tabla */
.material-table th:first-child,
.material-table td:first-child {
    padding-left: 20px;
}

.material-table th:last-child,
.material-table td:last-child {
    padding-right: 20px;
}

/* Hover mejorado para filas */
.material-table tbody tr {
    cursor: default;
    position: relative;
}

.material-table tbody tr::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #e8eaed;
}

.material-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Espaciado mejorado para contenido */
.material-table .user-info {
    padding: 8px 0;
}

.material-table .material-chip {
    margin: 0;
}

.user-card {
    padding: 0;
    overflow: visible;
}

.user-card .card-header {
    padding: 16px;
    border-bottom: none;
}

.user-card .card-body {
    padding: 0 16px;
}

.user-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.user-card .info-label {
    color: var(--google-secondary);
    font-weight: 500;
}

.user-card .info-value {
    color: var(--google-on-surface);
}

.user-card .card-actions {
    padding: 16px;
    border-top: 1px solid var(--google-border);
}

.user-card .card-actions .material-button {
    width: 100%;
    margin-bottom: 8px;
}

.user-card .card-actions .material-button:last-child {
    margin-bottom: 0;
}

.user-card .card-actions .material-button span {
    display: inline;
}

.card-checkbox {
    position: absolute;
    top: 16px;
    right: 16px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.stat-card {
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 500;
    color: var(--google-on-surface);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--google-secondary);
}

/* En pantallas grandes, mantener botones compactos */
@media (min-width: 961px) {
    .uam-action-buttons {
        gap: 2px;
    }
    
    .uam-btn {
        min-width: 62px;
        padding: 0 8px;
        height: 24px;
        font-size: 10px;
        line-height: 24px;
        border-radius: 12px;
    }
    
    .actions-column {
        min-width: 72px;
        max-width: 72px;
    }
}


@media (max-width: 600px) {
    .user-approval-container {
        padding: 16px;
        margin: 16px auto;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .material-search-field {
        max-width: 100%;
    }
    
    .filters-container {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .bulk-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagination-numbers {
        display: none;
    }
    
    .material-pagination {
        justify-content: space-between;
    }
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    opacity: 0.3;
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--google-secondary);
}

.empty-state-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--google-on-surface);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--google-secondary);
    line-height: 1.5;
}

.checkbox-column {
    width: 48px;
}

.user-column {
    min-width: 260px;
}

.email-column {
    min-width: 160px;
}

.role-column {
    min-width: 100px;
}

.status-column {
    min-width: 100px;
}

.date-column {
    min-width: 120px;
}

.actions-column {
    min-width: 76px;
    max-width: 76px;
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Confirmación inline */
.uam-inline-confirmation {
    position: relative;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    padding: 16px 24px;
    margin: 0 -24px 0 -24px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 1000;
    display: none;
}

.uam-inline-confirmation.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
    margin-bottom: 16px;
}

.uam-confirmation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.uam-confirmation-message {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.uam-confirmation-buttons {
    display: flex;
    gap: 8px;
}

.uam-confirmation-buttons .uam-btn {
    min-width: 80px;
    height: 32px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease-out;
}

.uam-confirmation-buttons .uam-btn-confirm {
    background: rgba(255, 255, 255, 0.9);
    color: #1a73e8;
    border-color: rgba(255, 255, 255, 0.9);
}

.uam-confirmation-buttons .uam-btn-confirm:hover {
    background: white;
    transform: scale(1.02);
}

.uam-confirmation-buttons .uam-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .uam-inline-confirmation {
        margin: 0 -16px 0 -16px;
    }
    
    .uam-inline-confirmation.show {
        margin-bottom: 16px;
    }
    
    .uam-confirmation-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .uam-confirmation-buttons {
        justify-content: center;
    }
}

/* Mensajes inline */
.uam-inline-message {
    position: relative;
    padding: 12px 20px;
    margin: 0 -24px 0 -24px;
    border-radius: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 999;
    border-left: 4px solid;
    display: none;
}

.uam-inline-message.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
    margin-bottom: 16px;
}

.uam-message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.uam-message-text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.uam-message-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease-out;
    opacity: 0.7;
}

.uam-message-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.uam-message-success {
    background-color: #e6f4ea;
    color: #137333;
    border-left-color: #137333;
}

.uam-message-success .uam-message-close {
    color: #137333;
}

.uam-message-error {
    background-color: #fce8e6;
    color: #d93025;
    border-left-color: #d93025;
}

.uam-message-error .uam-message-close {
    color: #d93025;
}

.uam-message-warning {
    background-color: #fef7e0;
    color: #f9ab00;
    border-left-color: #f9ab00;
}

.uam-message-warning .uam-message-close {
    color: #f9ab00;
}

@media (max-width: 600px) {
    .uam-inline-message {
        margin: 0 -16px 0 -16px;
    }
    
    .uam-inline-message.show {
        margin-bottom: 16px;
    }
}

