/* ========= General ========= */
body {
    font-family: Open Sans, Arial, sans-serif !important;
    font-size: .875rem !important;
    color: #333 !important;
    margin-bottom: 5px !important;
}

.top-bar {
    background: #333;
    color: #fff;
    font-size: 14px;
    padding: 5px 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 24px;
}

.auth-buttons .btn {
    font-size: 14px;
    padding: 6px 15px;
}

.text-red {
    color: red !important;
}

.text-green {
    color: #32be5b !important;
}

.text-yellow {
    color: darkorange !important;
}

.text-error {
    color: red !important;
    border-color: red !important;
}

h1 {
    font-size: 33px;
    line-height: 44px;
    letter-spacing: -1.3px;
}

    h1 + h2 {
        font-size: 18px;
        line-height: 28px;
        margin-top: -9px;
    }

.page-lead {
    max-width: 658px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -.2px;
}

.adb {
    margin-bottom: 15px;
    text-align: center;
}

/* ========= UI Components ========= */
.ui-badge {
    position: relative;
    display: inline-block;
    vertical-align: top;
    letter-spacing: .2px !important;
    font-size: .775rem !important;
    line-height: 13px !important;
    font-weight: 400 !important;
    padding: 0 4px !important;
    text-transform: uppercase;
    color: #f33;
    border: 1px solid;
    border-radius: 2px;
}

.file-name-inner {
    overflow: hidden;
}

.file-source-caption {
    padding: 13px 0 2px;
    color: #959595;
    letter-spacing: -.3px;
    cursor: default;
}

.file-size {
    min-width: 80px;
    vertical-align: baseline;
    font-size: .875rem;
    line-height: 16px;
    color: #959595;
    text-transform: uppercase;
}

/* Progress bar */
.progress-bar {
    transition: width 0.5s ease;
    height: 15px;
}

    .progress-bar.completed {
        background-color: green !important;
    }

    .progress-bar.failed {
        background-color: red !important;
    }

/* ========= Drag & Drop ========= */
.drag-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .drop-content svg {
        width: 100px;
        height: 100px;
    }

    .drop-content p {
        margin-top: 15px;
        font-weight: bold;
    }

#dropZone {
    background-color: #3c3c3c;
    background-image: linear-gradient(45deg, rgba(0,0,0,.06) 25%, transparent 0), linear-gradient(-45deg, rgba(0,0,0,.06) 25%, transparent 0), linear-gradient(45deg, transparent 75%, rgba(0,0,0,.06) 0), linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.06) 0);
    background-size: 24px 24px;
    border: 2px dashed rgba(255,255,255,0.7);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

    #dropZone.dragover {
        background-color: rgba(0,0,0,0.5);
        border-color: #ffcc00;
    }

.file-upload-btn {
    background-color: #ffcc00;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

    .file-upload-btn:hover {
        background-color: #ffaa00;
    }

#fileInput {
    display: none;
}

/* File list items */
.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
}

.file-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.btn-remove {
    margin-left: auto;
    margin-right: 20px;
}

/* ========= Media Queries ========= */
@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

@media (max-width: 700px) {
    .d-md-block {
        display: none !important;
    }
}


/* Prevent horizontal scroll + early layout shifts */
html, body {
    overflow-x: hidden
}

/* Megamenu: mobile no-overflow */
@@media (max-width:991.98px) {
    .navbar .dropdown-menu {
        position: static !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border: 0;
        box-shadow: none;
        transform: none !important
    }

        .navbar .dropdown-menu .row {
            --bs-gutter-x: 0;
            margin: 0 !important
        }

        .navbar .dropdown-menu .container {
            padding: 0 16px !important
        }

    .navbar-collapse {
        max-width: 100vw;
        overflow-x: hidden
    }
}

/* Megamenu: full-width on desktop */
@@media (min-width:992px) {
    .navbar .dropdown.megamenu {
        position: static
    }

        .navbar .dropdown.megamenu .dropdown-menu {
            left: 0;
            right: 0;
            top: 100%;
            width: 100%;
            padding: 1rem 0;
            transform: none !important
        }

        .navbar .dropdown.megamenu .container {
            max-width: 1200px
        }

        .navbar .dropdown.megamenu .row {
            --bs-gutter-x: 1.5rem;
            margin-left: 0;
            margin-right: 0
        }
}

/* Megamenu lists + icon color */
.navbar .dropdown.megamenu ul {
    list-style: none;
    padding-left: 0;
    margin: 0
}

.navbar .dropdown.megamenu .dropdown-item i {
    color: #dc3545;
    margin-right: .5rem
}
