html {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn {
    border-radius: 5px;
    font-weight: 600;
    border: none;
}

.btn-modern {
    /*padding: 12px 32px;*/
    border-radius: 5px;
    font-weight: 600;
    background: linear-gradient(135deg, #9ccee1 0%, #5ba3b8 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(156, 206, 225, 0.5);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 206, 225, 0.6);
}

#fixed-logo {
    position: fixed;
    background: #9ccee1;
    top: 0;
    left: 50px;
    z-index: 1000;
    width: 100px;
    height: 115px;
    transition: opacity 0.3s ease;
    border-radius: 0 0 4px 4px;
}

#fixed-logo img {
    padding: 10px;
    width: auto;
}

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
       max-width: unset;
        padding: 0 50px;
    }
}


@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm {
       max-width: unset;
        padding: 0 70px;
    }
}

@media (min-width: 1500px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: unset;
        padding: 0 100px;
    }
}




/*@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 100%;
    }
}*/

@media (min-width: 1200px) {
   .modal-xlg {
      width: 90%; 
      max-width: none;
   }
}

.header-logo {
    height: 40px;
    width: auto;
    display: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#globalDropZone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: 2px dashed #007bff;
    color: #007bff;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: auto;
}

#globalDropZone.hidden {
    display: none;
    pointer-events: none;
}

.upload-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    z-index: 1099;
    align-items: center;
    justify-content: center;
}

.upload-backdrop.hidden,
.upload-backdrop:not(.active) {
    display: none !important;
}

#uploadForm {
    position: relative;
    z-index: 1100;
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.15);
    min-width: 320px;
    max-width: 95vw;
    display: block;
    /* Remove fixed/transform, since backdrop centers it */
    top: unset;
    left: unset;
    transform: none;
}

.upload-backdrop.active {
    display: flex;
}

.upload-working {
    position: absolute;
    inset: 0;
    z-index: 1101;
    background: rgba(255,255,255,0.75);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    display: none;
}

/*#uploadForm.active {
    display: block;
}*/

#preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.preview-item {
    position: relative;
    display: inline-block;
}

.remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-weight: bold;
    color: #d00;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.remove-btn:hover {
    background: #fdd;
}
