body {
    background-color: #fbfbfb;
}

@media (min-width: 991.98px) {
    .main {
        width: calc(100vw - 260px);  
        margin-left: 240px;  
    }
}


.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 58px 0 0; 
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
    width: 240px;
    z-index: 600;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;  
    }
    
    .main {
        width: 100vw;  
        margin-left: 0;  
    }
}


.sidebar .active {
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}


.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto; 
}

#topNavBar {
    height: 48px !important;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


input[type="text"],
input[type="number"], 
input[type="email"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
    width: 100% !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #004226 !important;
    box-shadow: 0 0 5px rgba(0, 66, 38, 0.2);
}

.helptext {
    font-size: 0.7rem !important;
    color: #666;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}


.my-form-fields input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.my-form-fields:has(input[type="checkbox"]) {
    border: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.my-form-fields label {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
}

.my-form-fields:has(input[type="checkbox"]:checked) {
    font-weight: bold;
    color: #ffffff !important;
    background: #004226;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.my-form-fields input[type="checkbox"]:checked + label:after {
    content: ' ✓';
    color: #ffffff;
}

.asteriskField {
    color: #dc3545 !important;
    font-size: medium;
    font-weight: bold !important;
}
.my-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem !important;
    justify-content: space-between;
    width: 100%;
}

.my-form-fields {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}


@media (max-width: 768px) {
    .my-form-fields {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 66, 38, 0.2);
}


.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #000 !important;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 66, 38, 0.2);
    border-color: #004226 !important;
}


.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0 5px;
    border-radius: 4px;
    border: 1px solid #004226;
    color: #004226;
    width: auto;
    height: auto;
    white-space: nowrap;
}

.form-floating > label {
    transition: all 0.3s ease-in-out;
    width: auto;
}
