/* KBank-inspired styling */
.kbank-user-table-wrapper {
    font-family: 'Prompt', sans-serif;
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kbank-search-box {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.kbank-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.kbank-search-input:focus {
    outline: none;
    border-color: #00a950;
    box-shadow: 0 0 0 2px rgba(0, 169, 80, 0.2);
}

.kbank-user-table {
    width: 100%;
    border-collapse: collapse;
}

.kbank-user-table th,
.kbank-user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.kbank-user-table th {
    background: #00a950;
    color: white;
    font-weight: 500;
}

.kbank-user-table tr:hover {
    background-color: #f8f9fa;
}

.role-select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

.role-select:focus {
    outline: none;
    border-color: #00a950;
    box-shadow: 0 0 0 2px rgba(0, 169, 80, 0.2);
}

/* Notification styling */
.kbank-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.kbank-notification.success {
    background: #00a950;
}

.kbank-notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .kbank-user-table {
        display: block;
        overflow-x: auto;
    }
    
    .kbank-user-table th,
    .kbank-user-table td {
        white-space: nowrap;
    }
}


/* เพิ่มสไตล์ใหม่สำหรับปุ่มบังคับออกจากระบบ */
.force-logout-btn {
    display: block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.force-logout-btn:hover {
    background-color: #c82333;
}

.force-logout-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}