/* Custom CSS for AdminLTE Tables, Pagination and Search */

/* Fix table responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

/* Search form styling */
.form-inline .input-group {
    width: 100%;
}

/* Fix pagination buttons styling for AdminLTE */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-link:focus,
.pagination .page-link:hover {
    z-index: 2;
    color: #0056b3;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Add mobile responsive pagination and search styles */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-item {
        margin-bottom: 5px;
    }

    .form-inline .input-group {
        width: 100%;
    }

    .input-group-append {
        flex-wrap: wrap;
    }

    .input-group-append .btn {
        margin-top: 2px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* Profile Page Specific Styles */
.profile-user-img-container {
    position: relative;
    display: inline-block;
}

.profile-user-img {
    border: 3px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.profile-user-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

/* Enhanced Card Styling */
.card-primary.card-outline {
    border-top: 3px solid #007bff;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
}

.card-secondary .card-header {
    background-color: #6c757d;
    color: white;
}

/* Table Improvements */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    vertical-align: middle;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* Badge and Alert Improvements */
.badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.alert-success {
    border-left: 4px solid #28a745;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    border-left: 4px solid #17a2b8;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-danger {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Form Improvements */
.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Widget User Improvements */
.widget-user-2 .widget-user-header {
    padding: 20px;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

/* Custom File Input */
.custom-file-label::after {
    content: "Browse";
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Responsive Images */
.img-circle {
    border: 3px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Content Header Improvements */
.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #495057;
}

/* Button Improvements */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
