@font-face {
    font-family: 'Inter';
    /* Choose a name for your font family */
    src: url('../resources/fonts/inter-v20-latin-500.woff2') format('truetype');
    /* Adjust the path as needed */
    font-weight: 400;
    /* Standard weight for Regular */
    font-style: normal;
    font-display: swap;
    /* Best practice for performance */
}

/* Define the Bold weight */
@font-face {
    font-family: 'Inter';
    src: url('../resources/fonts/inter-v20-latin-700.woff2') format('truetype');
    font-weight: 700;
    /* Standard weight for Bold */
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
}

body.dialog-open {
    overflow: hidden;
}

/* Global progress bar - covers entire viewport */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-color: rgba(154, 172, 255, 0.9);*/
    z-index: 10001; /** Ensure it's above dialogs **/
    pointer-events: auto; /* Block all click events from passing through */
}

/* Content view progress bar - only overlays parent container */
.progress-container-content-root {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    /* background-color: rgba(255, 255, 255, 0.7); */
    pointer-events: auto; /* Block all click events from passing through */
}
.progress-container-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    /* background-color: rgba(255, 255, 255, 0.7); */
    padding: 30px; /* Add padding around spinner */
    border-radius: 8px; /* Rounded corners */
    pointer-events: auto; /* Block all click events from passing through */
}

.circular-progress {
    width: 100px;
    height: 100px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error Dialog Styles */
/*noinspection CssUnusedSymbol*/
.dialog-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: 10000;
    animation: fadeIn 0.2s ease-in-out;
    pointer-events: auto; /* Block all click events from passing through */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*noinspection CssUnusedSymbol*/
.dialog-box {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /*max-width: 400px;*/
    /*width: 90%;*/
    max-width: 80%;
    width: 600px;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.dialog-box.page-error {
    box-shadow: none;
    max-width: 100%;
    height: 100%;
    width: 100%;
    margin-top: 12px;
}

/*noinspection CssUnusedSymbol*/
#error-details {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #666;
    max-height: 350px;
    overflow: auto;
    /* white-space: pre-wrap;
    word-break: break-word; */
    display: none;
    overflow-x: auto;
    white-space: pre;
    max-width: 100%;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    
}

/*noinspection CssUnusedSymbol*/
#error-details-toggle {
    background: none;
    border: none;
    color: #999;
    font-size: 11px;
    padding: 5px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 10px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.dialog-box h2 {
    margin: 0 0 15px 0;
    color: #d32f2f;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialog-box h2 .error-icon {
    font-size: 28px;
    line-height: 1;
}

.dialog-box pre {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.dialog-box button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.dialog-box button:hover {
    background-color: #2980b9;
}

.dialog-box button:active {
    transform: scale(0.98);
}

/* Dropdown select styling in dialogs */
.dropdown-dialog-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    margin-top: 30px;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 4px;
    /* Custom arrow styling */
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

.dropdown-dialog-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-dialog-select:hover {
    border-color: #9ca3af;
}

.dropdown-dialog-select option {
    padding: 12px;
    font-size: 15px;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    height: 100dvh;
    overflow: hidden;
}

.main-content.full-width {
    margin-left: 0;
    width: 100%;
}

#nav-drawer {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.retry-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.retry-button:hover {
    background-color: #2980b9;
}
.retry-button:active {
    transform: scale(0.98);
}

.pagination-error-message {
    color: red;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}