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


#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;
    z-index: 1000; /* Ensure the loader is above overlay */
}

.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: 56px;
    padding: 18px 10px;
}

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

#sidebar {
    height: 100vh;
    min-width: 250px;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

#sidebar.collapsed {
    margin-left: -250px;
    width: 0;
    overflow: hidden;
}

/* Hide the sidebar on small screens by default */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1040;
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

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

    #content {
        width: 100%;
    }
}