/* Dynamic content styling for tables and pagination */

.search-container {
    max-width: 300px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dashboard-actions .search-container {
    flex: 1;
    min-width: 250px;
}

/* Pagination controls */
.pagination-controls,
.user-pagination-controls {
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
}

.pagination-info {
    color: #666;
    font-size: 0.85rem;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-page {
    font-weight: 500;
    color: #333;
}

/* User search container */
.user-search-container {
    margin-bottom: 1rem;
}

.user-search-container .input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* Table enhancements */
.table tbody tr {
    transition: background-color 0.2s ease;
}

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

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Password visibility toggle */
.btn-visibility {
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
}

.btn-visibility:hover {
    color: #007bff;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Error states */
.text-danger .material-symbols-rounded {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Success/error messages */
.user-message {
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

/* Modal enhancements */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body h6 {
    color: #666;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-body p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-body strong {
    font-weight: 600;
    color: #333;
}

/* Filter enhancements */
.filter-applied {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-actions .search-container {
        max-width: none;
        width: 100%;
    }
    
    .pagination-controls,
    .user-pagination-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-buttons {
        justify-content: center;
    }
}

/* Small screen table responsiveness */
@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}
