@font-face {
    font-family: 'AktivGrotesk';
    src: url('../../fonts/AktivGrotesk-Regular.woff') format('woff'),
        url('../../fonts/AktivGrotesk-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body{
    font-family: 'AktivGrotesk', sans-serif !important;
}

.hover-bg:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-logo,
.navbar-brand img.logo {
    max-width: 100%;
    height: 40px;
}

.sidebar-toggle-logo {
    max-width: 100%;
    height: 30px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1050; /* Above other content */
    display: none; /* Hidden by default */
}

#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centering loader */
    display: none;
    background: white;
    z-index: 1110;
    border-radius: 50%;
    padding: 15px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

#json-renderer {
    padding: 1rem 1.5rem !important;
}

.message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}
.error {
    background-color: #ffe0e0;
    color: red;
}
.json-box {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    white-space: pre-wrap;
    font-family: monospace;
    position: relative;
    margin-top: 1rem;
}
.copy-btn {
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.back-btn {
    margin-top: 2rem;
}

.error-container {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #dc3545;
}

.error-message {
    font-size: 1.5rem;
    color: #6c757d;
}


/* Custom file input container */
.custom-file-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-control-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Hide the original file input */
    z-index: 2;
    /* Place it on top of the label */
}

.file-input-label {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    background-color: #f8f9fa;
    border: 2px solid #dfe2e5;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.file-input-label span {
    display: inline-block;
}

/* Hover effect for the label */
.file-input-label:hover {
    background-color: #e2e6ea;
    border-color: #007bff;
    color: #007bff;
}

/* Focus effect on the input (accessibility) */
.form-control-file:focus+.file-input-label,
.file-input-label:focus {
    outline: 3px solid #007bff;
}

/* File name display after file selection */
.file-input-label::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #007bff;
    display: none;
}

/* Display file name when a file is selected */
.form-control-file:valid+.file-input-label::after {
    content: "✔ File Selected";
    color: green;
    font-weight: bold;
}


#content {
    width: 100%;
    transition: margin-left 0.3s ease;
}

.header-title {
    height: 55px;
    padding: 5px 10px;
}

.private-layout .main-section {
    overflow: auto;
    height: calc(100vh - 56px);
}

/* Sidebar styles */
#sidebar {
    height: 100vh;
    min-width: 250px;
    width: 250px;
    background: #f8f9fa;
    position: fixed;
    top: 0;
    left: 0;
    transition: margin-left 0.3s ease, width 0.3s ease;
    z-index: 1040;
}

/* Sidebar collapsed state (desktop) */
#sidebar.collapsed {
    margin-left: -250px;
}

/* Content area styles */
#content {
    margin-left: 250px;
    width: calc(100% - 250px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Content when sidebar is collapsed */
#content.sidebar-collapsed {
    margin-left: 0;
    width: 100%;
}

/* Mobile styles */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        margin-left: 0;
        width: 250px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transition: transform 0.3s ease-in-out;
        z-index: 1040;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.luna-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}



.chatbot .is-invalid {
    border-color: #dc3545 !important;
}

img.loader {
    height: 100px;
}

.text-muted {
    display: none;
}


.document-editor {
    max-height: calc(72vh);
    overflow-y: auto;
    height: 100%;
    min-height: calc(72vh);
}


.bundle-error-container {
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.bundle-error-item {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

#sidebar.collapsed + #content {margin: 0;}

#viewer {
    border: 1px solid #ddd; 
    min-height: 400px; 
    padding: 20px; 
    text-align: center; 
    color: #666;
}

.table thead th {
    background-color: #212529 !important;
    color: white !important;
}