html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8) url("/img/processing.gif") center no-repeat;
}

body {
  margin-bottom: 60px;
}
    body.loading {
        overflow: hidden;
    }
        /* Make spinner image visible when body element has the loading class */
        body.loading .overlay {
            display: block;
        }


.slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 800px; /* limits width on desktops */
    height: 100%;
    background: #f8f9fa;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.4);
    z-index: 1050;
    transition: right 0.4s ease;
    padding: 25px 20px;
    direction: rtl;
    overflow-y: auto;
    border-right: 5px solid #dc3545;
}

    /* Panel visible */
    .slide-panel.open {
        right: 0;
    }

/* Header styling */
.slide-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #343a40;
}

    .slide-panel-header .close {
        font-size: 2rem;
        background: none;
        border: none;
        color: #dc3545;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        transition: transform 0.2s ease, color 0.2s ease;
    }

.slide-panel-body .form-group {
    margin-bottom: 15px;
}

.slide-panel-body label {
    font-weight: 600;
    color: #212529;
}

.slide-panel-body input.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}