/* Global styles for the G_ID Management System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding-top: 60px; /* Account for compact fixed header height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Compact Sticky Navigation */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 60px;
    display: flex;
    align-items: center;
}

/* Enhanced shadow when scrolling */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 0.3rem 0;
    height: 55px;
}

header.scrolled .logo h1 {
    font-size: 1rem;
}

header.scrolled .logo p {
    font-size: 0.6rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.logo h1 i {
    font-size: 0.9em;
    margin-right: 0.4rem;
}

.logo p {
    font-size: 0.65rem;
    opacity: 0.85;
    margin-top: 0.1rem;
    line-height: 1.2;
}

/* User Info - Compact and Proportional */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.75rem;
}

.user-info span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.7rem;
    white-space: nowrap;
}

.user-info .btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: auto;
}

.user-info .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main content */
main {
    padding: 1.5rem 0;
    min-height: calc(100vh - 140px);
    margin-top: 0; /* No additional margin needed - body padding handles it */
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.card h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
}

.card h3 {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 1.1rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-number.primary { color: #667eea; }
.stat-number.success { color: #28a745; }
.stat-number.warning { color: #ffc107; }
.stat-number.danger { color: #dc3545; }
.stat-number.info { color: #17a2b8; }

.stat-label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Statistics Table */
.dashboard-table-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-bottom: 2rem;
}

.dashboard-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 1rem;
    table-layout: fixed;
}

.dashboard-stats-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dashboard-stats-table th {
    padding: 1.2rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 25%; /* Equal width columns */
}

.dashboard-stats-table th:first-child {
    text-align: left;
    width: 30%; /* Category column slightly wider */
}

.dashboard-stats-table th:nth-child(2),
.dashboard-stats-table th:nth-child(3),
.dashboard-stats-table th:nth-child(4) {
    width: 23.33%; /* Equal width for data columns */
}

.dashboard-stats-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.dashboard-stats-table tbody tr:hover {
    background-color: #f8f9ff;
}

.dashboard-stats-table tbody tr:last-child {
    border-bottom: none;
}

.dashboard-stats-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.dashboard-stats-table td:last-child {
    border-right: none;
}

.dashboard-stats-table td.category-name {
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    padding-left: 1.5rem;
}

.dashboard-stats-table .stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    text-align: center;
}

.dashboard-stats-table .stat-number.primary { color: #667eea; }
.dashboard-stats-table .stat-number.success { color: #28a745; }
.dashboard-stats-table .stat-number.warning { color: #ffc107; }
.dashboard-stats-table .stat-number.danger { color: #dc3545; }
.dashboard-stats-table .stat-number.info { color: #17a2b8; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.source-database {
    background-color: #d1ecf1;
    color: #0c5460;
}

.source-excel {
    background-color: #fff3cd;
    color: #856404;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

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

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #667eea;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #667eea;
    color: white;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search and filters */
.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: end;
}

.search-filters .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* Progress bar */
.progress {
    width: 100%;
    height: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Custom Modal styles (for non-Bootstrap modals) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Bootstrap Modal Centering Fix */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

/* Ensure Bootstrap modals are properly centered */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Fix for modal appearing in top-left corner */
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal.show .modal-dialog {
    margin: auto;
}

/* Mobile modal improvements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 1rem);
    }
    
    .modal-xl {
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
}

.modal h2 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    margin-top: -0.5rem;
}

.modal-close:hover {
    color: #333;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Enhanced Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation responsive improvements */
.main-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.6rem;
    align-items: center;
}

.main-nav .nav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.main-nav .nav-menu li a i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.main-nav .nav-menu li a span {
    font-size: 0.85rem;
}

.main-nav .nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.main-nav .nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 65px; /* Compact padding for tablets */
    }
    
    header {
        padding: 0.5rem 0;
        height: 65px;
    }
    
    header.scrolled {
        padding: 0.4rem 0;
        height: 60px;
    }
    
    /* Show mobile toggle, hide desktop nav */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav .nav-menu {
        position: fixed;
        top: 65px; /* Position below the compact header */
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #333 0%, #444 100%);
        flex-direction: column;
        padding: 0.8rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999; /* Below header but above content */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .main-nav .nav-menu.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav .nav-menu li {
        width: 100%;
    }
    
    .main-nav .nav-menu li a {
        justify-content: flex-start;
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }
    
    .main-nav .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Mobile logout styling */
    .mobile-logout a {
        color: #ff6b6b !important;
        font-weight: 600;
        border-top: 2px solid rgba(255, 107, 107, 0.3) !important;
        border-bottom: none !important;
        background: rgba(255, 107, 107, 0.1);
    }
    
    .mobile-logout a:hover {
        background: rgba(255, 107, 107, 0.2);
        color: #ff5252 !important;
    }
    
    .header-content {
        position: relative;
    }
    
    /* Hide user info on mobile */
    @media (max-width: 991px) {
        .user-info {
            display: none !important;
        }
    }
    
    .dashboard-table-container {
        padding: 1.5rem;
        overflow-x: auto;
    }
    
    .dashboard-stats-table {
        min-width: 600px; /* Prevent table from getting too compressed */
    }
    
    .dashboard-stats-table th {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .dashboard-stats-table td {
        padding: 1.2rem 0.5rem;
    }
    
    .dashboard-stats-table td.category-name {
        padding-left: 1rem;
        font-size: 1rem;
    }
    
    .dashboard-stats-table .stat-number {
        font-size: 1.6rem;
    }
    
    .dashboard-stats-table td {
        padding: 1.25rem 0.8rem;
    }
    
    .dashboard-stats-table .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Reduced padding for mobile */
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    header.scrolled {
        padding: 0.6rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .logo p {
        font-size: 0.85rem;
        margin: 0;
    }
    
    header.scrolled .logo h1 {
        font-size: 1.3rem;
    }
    
    header.scrolled .logo p {
        font-size: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-table-container {
        padding: 1rem;
        margin: 0 -10px;
        overflow-x: auto;
    }
    
    .dashboard-stats-table {
        font-size: 0.9rem;
        min-width: 500px; /* Smaller minimum width for very small screens */
    }
    
    .dashboard-stats-table th {
        padding: 0.8rem 0.3rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .dashboard-stats-table td {
        padding: 1rem 0.3rem;
    }
    
    .dashboard-stats-table td.category-name {
        padding-left: 0.8rem;
        font-size: 0.9rem;
    }
    
    .dashboard-stats-table .stat-number {
        font-size: 1.4rem;
    }
    
    .dashboard-stats-table td.category-name {
        font-size: 1rem;
    }
    
    .dashboard-stats-table .stat-number {
        font-size: 1.5rem;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-filters .form-group {
        min-width: auto;
    }
    
    .card {
        padding: 1rem;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .modal {
        width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .logo h1 i {
        display: none; /* Hide icon on very small screens */
    }
    
    .main-nav .nav-menu li a span {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .search-filters .form-group {
        margin-bottom: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination button {
        padding: 0.5rem;
        font-size: 0.85rem;
        min-width: 40px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .mobile-menu-toggle, .nav-menu a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Enhanced table responsiveness */
.table-responsive-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive-stack table,
    .table-responsive-stack thead,
    .table-responsive-stack tbody,
    .table-responsive-stack th,
    .table-responsive-stack td,
    .table-responsive-stack tr {
        display: block;
    }
    
    .table-responsive-stack thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive-stack tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 5px;
        background: white;
    }
    
    .table-responsive-stack td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .table-responsive-stack td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #666;
    }
}

/* Responsive grid system */
.row-responsive {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.col-responsive {
    flex: 1;
    min-width: 250px;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .col-responsive {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* Loading states for better UX */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-card {
    height: 100px;
    border-radius: 10px;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: #6c757d; }
.text-bold { font-weight: bold; }
.text-nowrap { white-space: nowrap; }

/* Spacing utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }

/* Padding utilities */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

/* Responsive display utilities */
@media (max-width: 576px) {
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
    .d-sm-inline-block { display: inline-block; }
}

@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-inline-block { display: inline-block; }
}

@media (max-width: 992px) {
    .d-lg-none { display: none; }
    .d-lg-block { display: block; }
    .d-lg-inline-block { display: inline-block; }
}

/* Flexbox utilities */
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

/* Float utilities */
.float-right { float: right; }
.float-left { float: left; }

/* Advanced Pagination Styles - Horizontal Layout */
.pagination-section {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    width: fit-content;
}

.pagination-controls .btn {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    margin: 0;
    font-size: 0.85rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.pagination-controls .btn-outline-primary {
    border: 1px solid #007bff;
    color: #007bff;
    background: white;
}

.pagination-controls .btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.pagination-controls .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.pagination-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.pagination-ellipsis {
    color: #6c757d;
    padding: 4px 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

/* Mobile responsive pagination */
@media (max-width: 768px) {
    .pagination-section {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    .pagination-controls {
        padding: 8px 12px;
        gap: 4px;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .pagination-controls .btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .pagination-ellipsis {
        font-size: 0.8rem;
        padding: 2px 4px;
    }
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}