﻿body {
    font-family: 'Inter', sans-serif;
}
.pager {
    text-align: center;
    font-family: Arial, sans-serif;
}

    .pager > td > table {
        display: flex;
        align-content: stretch;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }

        .pager > td > table > tbody > tr {
            padding: 16px;
            background-color: transparent;
        }

    .pager a {
        display: inline-block;
        padding: 5px 10px;
        margin: 4px 4px;
        background-color: #3182ce;
        color: white;
        text-decoration: none;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.3s ease, transform 0.1s ease;
    }

        .pager a:hover {
            background-color: #c0c7ef;
        }

    .pager span {
        display: inline-block;
        padding: 5px 10px;
        margin: 4px 4px;
        background-color: #718096;
        color: white;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 500;
    }

    .pager:hover {
        background-color: transparent;
    }

.inputSearch {
    border-radius: 12px;
    width: 25em;
    height: 2.5em;
    margin: 10px;
    padding-left: 12px;
    border-width: 1px;
    border-color: #11037bb2;
    border-style: solid;
}

.btnSearch {
    border-radius: 5px;
}

.record-count {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
    float: right;
}

.modal-input {
    padding: 5px;
}

.sort-caret {
    position: relative;
    white-space: nowrap;
    padding: 1px;
    width: 25px !important;
    height: 25px !important;
    /*        margin-left: 50%; 
        vertical-align: middle; 
        fill: #4b5563; */
}
.fill-vert {
    height:stretch;
}
.full-height {
    min-height: 100vh; /* Ensures it takes at least the full viewport height */
    height: 100%; /* Expands to 100% of the parent container */
}
.sort-header {
    display: inline-flex;
    align-items: center;
}

.input-alert {
    border: 2px solid red;
}

.input-ok {
    border: 1px solid green;
}
.sidebar {
    transition: transform 0.3s ease-in-out;
}

.sidebar-hidden {
    transform: translateX(-100%);
}

@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
    }
}

.input-alert {
    border: 2px solid red;
}

.input-ok {
    border: 1px solid green;
}
/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    pointer-events: all;
}

/* Spinner animation */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb; /* gray-200 */
    border-top: 4px solid #3b82f6; /* blue-500 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disable interactions with UI */
body.loading-active {
    pointer-events: none;
}
/* Message label container */
.message-label {
    position: absolute;
    top: 50px;
    left:50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    /*width: 100%;*/
    max-width: 50rem; /* Matches typical login form width */
    text-align: center;
    transition: opacity 0.3s ease;
}
/* Close button */
.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: inherit; /* Inherits variant text color */
    font-size: 1rem; /* text-base */
    font-weight: 700; /* font-bold */
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: opacity 0.2s ease;
}

    .close-button:hover {
        opacity: 0.7;
    }

    .close-button:focus {
        outline: 2px solid #3b82f6; /* blue-500 */
        outline-offset: 2px;
    }

/* Hidden state */
.message-label.hidden {
    display: none;
}
.message-text{
    padding-left:5px;
    padding-right:5px;
}
/* Variant styles */
.message-label[data-variant="alert"] {
    background-color: #fee2e2; /* red-100 */
    color: #b91c1c; /* red-700 */
    border: 1px solid #f87171; /* red-400 */
}
.message-label[data-variant="error"] {
    background-color: #fee2e2; /* red-100 */
    color: #b91c1c; /* red-700 */
    border: 1px solid #f87171; /* red-400 */
}

.message-label[data-variant="info"] {
    background-color: #dbeafe; /* blue-100 */
    color: #1e40af; /* blue-800 */
    border: 1px solid #60a5fa; /* blue-400 */
}

.message-label[data-variant="warning"] {
    background-color: #fef3c7; /* yellow-100 */
    color: #92400e; /* yellow-800 */
    border: 1px solid #f4b04f; /* yellow-400 */
}

.message-label[data-variant="success"] {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
    border: 1px solid #34d399; /* green-400 */
}
.message-link {
    color: blue!important;
    text-decoration:underline!important;
}
    .message-link:hover {
        color: #065f46 !important;
    }
.modal-input {
    padding: 5px;
}
