/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.25rem;
    border-radius: 0.375rem;
    padding: 0 0.75rem;
    border: 1px solid var(--input-border, #e2e8f0);
    background-color: var(--background, transparent);
    transition: all 0.2s ease;
    cursor: pointer;
}

.main-button:hover {
    background-color: var(--accent, #f1f5f9);
}

.card {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card-header {
    border: none;
    background-color: white;
}

.card-footer {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: flex-end;
    background-color: white;
    border: none;
}

.hoverable-card {
    transition: all 0.3s ease;
}

.hoverable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-heading {
    font-size: 1.7rem;
}

/* Color Overrides */
.text-success {
    color: #22c55e !important; /* New green color */
}

.bg-success {
    background-color: #22c55e !important; /* New green color for backgrounds */
}

/* Error Message Class */
.error-message {
    width: 100%;
    text-align: center;
    color: #dc3545;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* jQuery Pagination Plugin Styles */
.paginationjs {
    margin: 1.5rem 0;
}

.paginationjs-nav {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: center;
}

.paginationjs-pages {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.paginationjs-pages ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 0.25rem;
}

.paginationjs-pages li {
    display: flex;
    align-items: center;
}

.paginationjs-pages li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.5rem 0.75rem;
    color: #374151;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.paginationjs-pages li a:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #374151;
}

.paginationjs-pages li.active a {
    background-color: #374151;
    border-color: #374151;
    color: white;
}

.paginationjs-pages li.active a:hover {
    background-color: #1f2937;
    border-color: #1f2937;
    color: white;
}

.paginationjs-pages li.disabled a {
    color: #9ca3af;
    background-color: transparent;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.paginationjs-pages li.disabled a:hover {
    background-color: transparent;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.paginationjs-size-changer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

.paginationjs-size-changer select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: transparent;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.paginationjs-size-changer select:hover {
    background-color: #f1f5f9;
}

.paginationjs-size-changer select:focus {
    outline: none;
    border-color: #374151;
    background-color: #f1f5f9;
}

.paginationjs-ellipsis a {
    cursor: default;
    background-color: transparent !important;
    border-color: transparent !important;
    color: #9ca3af !important;
}

.paginationjs-ellipsis a:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #9ca3af !important;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-button:hover {
    background: var(--accent, #f1f5f9);
}
