/**
 * Ultimate Member User Grid Styles
 * Version: 1.2
 */

/* Main Container */
.umug-grid-container {
    margin: 20px 0;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.umug-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    background: white;
}

.umug-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.umug-table th,
.umug-table td {
    padding: 15px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.umug-table tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

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

/* Avatar Styles */
.umug-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    display: block;
    margin: 0 auto;
}

/* DataTables Wrapper */
.dataTables_wrapper {
    padding: 20px;
    position: relative;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Pagination Styles */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    color: #007cba;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #007cba;
    color: white !important;
    border-color: #007cba;
    text-decoration: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #007cba;
    color: white !important;
    border-color: #007cba;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #f8f9fa;
    color: #6c757d !important;
    border-color: #dee2e6;
}

/* Info Text */
.dataTables_wrapper .dataTables_info {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
    padding: 10px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .umug-table th,
    .umug-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .umug-avatar {
        width: 35px;
        height: 35px;
    }
    
    .dataTables_wrapper {
        padding: 15px;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        min-width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .umug-table th,
    .umug-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .umug-avatar {
        width: 30px;
        height: 30px;
    }
    
    .dataTables_wrapper {
        padding: 10px;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        min-width: 120px;
    }
}