.overlay {
        left: 0;
        bottom: 0;
        width: 100%;
        height: 15%;
        position: fixed;
        background: #222;
        opacity: 5;
    }

    .overlay__inner {
        left: 0;
        bottom: 0;
        width: 100%;
        height: 15%;
        position: absolute;
    }

    .overlay__content {
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .spinner {
        width: 50px;
        height: 50px;
        display: inline-block;
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.05);
        border-top-color: #fff;
        animation: spin 1s infinite linear;
        border-radius: 100%;
        border-style: solid;
    }

    @keyframes spin {
        100% {
            transform: rotate(360deg);
        }
    }

    .pgBox1 {
        margin: 10px;
        border: 1px solid #CCC;
        padding: 8px;
    }

    .pgBox2 {
        margin: 8px;
        border-radius: 5px;
        border: 1px solid #CCC;
        padding: 8px;
    }

    .arrow {
        border: solid black;
        border-width: 0 3px 3px 0;
        display: inline-block;
        padding: 3px;
    }

    .right {
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }

    .left {
        transform: rotate(135deg);
        -webkit-transform: rotate(135deg);
    }

    .up {
        transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg);
    }

    .down {
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }

    .ng-image {
        width: 180px;
        border-radius: 5px;
        height: 100px;
        -moz-box-shadow: 5px 5px 10px #CCC;
        -webkit-box-shadow: 5px 5px 10px #CCC;
        box-shadow: 5px 5px 10px #CCC;
        object-fit: cover;
        object-position: 0 30%;
    }

    #kitnes-progress {
        width: 100%;
        position: fixed;
        z-index: 3000000000;
        top: 0;
        margin: 0;
        padding: 0;
        left: 0;
    }

    #kitnes-progressbar {
        width: 0%;
        height: 20px;
        background-color: #ebc8dc;
        text-align: center;
        line-height: 20px;
        opacity: 50;
        color: black;
        margin: 0;
    }

    #kitnes-update {
        width: 100%;
        position: fixed;
        z-index: 3000000000;
        bottom: 0;
        margin: 0;
        padding: 0;
        left: 0;
    }

    #kitnes-updatebar {
        padding: 5px 0;
        background-color: #ebc8dc;
        text-align: center;
        opacity: 50;
        color: black;
        margin: 0;
        display: none;
    }

    .tox-notifications-container {
        display: none;
    }

    .tox-statusbar__branding {
        display: none;
    }

    .breadcrumb>li+li:before {
        padding: 0 5px;
        color: #ccc;
        content: "/";
    }


    /* login, file upload, etc. */
    
    .uploaded-files-container {
        width: 100%;
        padding: 10px;
    }

    .file-box:hover {
        transform: scale(1.05);
    }

    .file-preview {
        width: 100%;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .file-preview img,
    .file-preview video {
        max-width: 100%;
        max-height: 100%;
        border-radius: 5px;
        object-fit: cover;
    }

    .file-icon {
        width: 50px;
        height: 50px;
    }

    .file-name {
        font-size: 12px;
        color: #333;
        margin: 5px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-body img,
    .modal-body video {
        max-width: 100%;
        max-height: 400px;
        border-radius: 8px;
    }

    .move-buttons {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 5px;
    }

    .move-buttons button {
        width: 30px;
        height: 30px;
        font-size: 16px;
        padding: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .file-box {
        max-width: 120px;
        min-width: 90px;
        height: 150px;
        /* Increased height to prevent buttons from getting cut off */
        text-align: center;
        background: #f8f9fa;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
        margin: 5px;
        overflow: hidden;
        position: relative;
    }

    .delete-btn {
        position: absolute;
        top: 3px;
        right: 3px;
        width: 20px;
        height: 20px;
        background: #dc3545;
        color: #fff;
        border: none;
        border-radius: 50%;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
    }

    .delete-btn:hover {
        background: #b02a37;
    }

    /* auto-themeing starts */

    :root {
        --primary-color: #007bff;
        /* Default primary color */
        --secondary-color: #6c757d;
        /* Default secondary color */
        --success-color: #28a745;
        /* Default success color */
        --danger-color: #dc3545;
        /* Default danger color */
        --warning-color: #ffc107;
        /* Default warning color */
        --info-color: #17a2b8;
        /* Default info color */
        --text-on-color: #ffffff;
        /* White text by default */
    }

    /* Primary Buttons */
    .btn-primary,
    .btn-link {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: var(--primary-text-color, #fff);
    }

    /* Secondary Buttons */
    .btn-secondary {
        background-color: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        color: #fff;
    }

    /* Success Buttons */
    .btn-success {
        background-color: var(--success-color) !important;
        border-color: var(--success-color) !important;
        color: #fff !important;
    }

    /* Danger Buttons */
    .btn-danger {
        background-color: var(--danger-color) !important;
        border-color: var(--danger-color) !important;
        color: #fff !important;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-success:hover,
    .btn-danger:hover {
        opacity: 0.9;
    }

    .card-header,
    .card-header,
    .card {
        border-color: var(--primary-color);
    }

    .accordion-button:not(.collapsed),
    .accordion-button {
        color: #fff !important;
        background-color: var(--primary-color) !important;
    }

    a {
        color: var(--primary-color);
    }

    /* Additional themed elements */
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    }

    /* auto-themeing ends */