/* assets/css/ps-user-management.css */
.ps-user-management {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ps-user-management h2 {
    margin-top: 0;
    color: #2c3e50;
}

.ps-user-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ps-user-filters > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-input, .ps-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 100px;
}

.ps-button {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ps-button:hover {
    background: #2980b9;
}

.ps-button-primary {
    background: #2ecc71;
}

.ps-button-primary:hover {
    background: #27ae60;
}

.ps-button.reject {
    background: #e74c3c; /* Red color for reject button */
}

.ps-button.reject:hover {
    background: #c0392b; /* Darker red on hover */
}

.ps-user-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.ps-user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ps-user-table th, .ps-user-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.ps-user-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.ps-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.ps-status.active {
    background: #d4edda;
    color: #155724;
}

.ps-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.ps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.ps-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.ps-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh; /* Limit modal height */
    overflow-y: auto; /* Enable scrolling for overflow content */
}

.ps-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    background-color: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ps-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.ps-close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.ps-form-group {
    margin-bottom: 15px;
}

.ps-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ps-user-filters {
        flex-direction: column;
    }
    
    .ps-user-filters > div {
        width: 100%;
    }
    
    .ps-input, .ps-select {
        flex: 1;
    }

    .ps-modal-content {
        width: 95%; /* Adjust modal width for smaller screens */
        max-width: none;
    }
}