/* Professional theme modal styles for delete confirmation */
.theme-modal {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(46,92,154,0.18);
    border: none;
    overflow: hidden;
}
.theme-modal-header {
    background: #2E5C9A;
    color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 18px 24px 12px 24px;
    font-size: 1.25rem;
    font-weight: 600;
}
.theme-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px;
}
.theme-modal .modal-body {
    padding: 24px;
    font-size: 1.1rem;
    color: #333;
}
.btn-theme-cancel {
    background: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.btn-theme-cancel:hover {
    background: #2E5C9A;
    color: #fff;
}
.btn-theme-delete {
    background: #d9534f;
    color: #fff;
    border: 1px solid #d9534f;
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 500;
    margin-left: 8px;
    transition: background 0.2s, color 0.2s;
}
.btn-theme-delete:hover {
    background: #c9302c;
    color: #fff;
}
.theme-modal .btn-close {
    color: #fff !important;
    filter: brightness(1000%) invert(1);
    opacity: 1;
    font-size: 1rem;
    margin-right: 8px;
}


/* Pagination container */
.pagination-bar {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Result text */
.pagination-info {
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Tailwind pagination normalization */
.pagination {
    margin: 0;
}

.pagination .page-link,
.pagination a,
.pagination span {
    font-size: 0.85rem;
    padding: 4px 10px !important;
    min-width: 32px;
    text-align: center;
    border-radius: 6px;
}

/* Pull the footer closer to the table */
.table-footer-actions {
    margin-top: .5rem;   /* was often 1rem+ via utilities */
    padding-top: .25rem; /* minimal breathing room */
}

/* Reduce default spacing pushed by table/pagination */
.table {
    margin-bottom: .5rem;              /* default ~1rem */
}
.table-responsive {
    margin-bottom: .25rem;             /* prevent extra bottom gap from wrappers */
}


/* Stack pagination over the text, align both to the right */
.pagination-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* right edge */
    gap: .25rem;             /* tight vertical gap */
}

/* Remove default bottom margin Bootstrap adds to pagination */
.pagination {
    margin: 0;
}

/* Make the text look subtle and align visually under the controls */
.pagination-info {
    font-size: .85rem;
    color: #6b7280;          /* muted grey */
    line-height: 1.1;
}

/* Optional: slightly shrink the page buttons' paddings for a tidier look */
.pagination .page-link {
    padding: .35rem .6rem;
    line-height: 1.1;
}

/* Match records-per-page dropdown height to pagination buttons */
.table-footer-actions .form-select-sm,
#perPageSelect {
    height: 36px;
    font-size: 0.85rem;
}





