:root {
    --main-color: #1c345c;
    --secondary-color: #a7cde4;
}

html,
body {
    height: 100%;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    background: whitesmoke;
}

body:not(.loaded) {
    display: none;
}

body>header {
    flex-shrink: auto;
}

body>main {
    flex-shrink: auto;
    flex-grow: auto;
    overflow: auto;
}

body>footer {
    flex-shrink: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100%);
}

#user-avatar {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: scale-down;
    object-position: center center;
}

#user-img-profile {
    width: 100%;
    height: auto;
    max-height: 20vh;
    object-fit: scale-down;
    object-position: center center;
}

.body-wrapper .main-wrapper .page-wrapper .content-wrapper {
    min-height: calc(100vh - 84px - 62px) !important;
}

.bg-secondary {
    background-color: var(--bs-gray-500)!important;
}

.navbar-brand>img {
    width: 7em;
    height: 2em;
}


/* loader */

body.loading {
    overflow: hidden;
}

#pre-loader {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: brightness(.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lds-default {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-default div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: lds-default 1.2s linear infinite;
}

.lds-default div:nth-child(1) {
    animation-delay: 0s;
    top: 37px;
    left: 66px;
}

.lds-default div:nth-child(2) {
    animation-delay: -0.1s;
    top: 22px;
    left: 62px;
}

.lds-default div:nth-child(3) {
    animation-delay: -0.2s;
    top: 11px;
    left: 52px;
}

.lds-default div:nth-child(4) {
    animation-delay: -0.3s;
    top: 7px;
    left: 37px;
}

.lds-default div:nth-child(5) {
    animation-delay: -0.4s;
    top: 11px;
    left: 22px;
}

.lds-default div:nth-child(6) {
    animation-delay: -0.5s;
    top: 22px;
    left: 11px;
}

.lds-default div:nth-child(7) {
    animation-delay: -0.6s;
    top: 37px;
    left: 7px;
}

.lds-default div:nth-child(8) {
    animation-delay: -0.7s;
    top: 52px;
    left: 11px;
}

.lds-default div:nth-child(9) {
    animation-delay: -0.8s;
    top: 62px;
    left: 22px;
}

.lds-default div:nth-child(10) {
    animation-delay: -0.9s;
    top: 66px;
    left: 37px;
}

.lds-default div:nth-child(11) {
    animation-delay: -1s;
    top: 62px;
    left: 52px;
}

.lds-default div:nth-child(12) {
    animation-delay: -1.1s;
    top: 52px;
    left: 62px;
}

@keyframes lds-default {
    0%,
    20%,
    80%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

img#post-banner-mgt {
    width: 100%;
    max-height: 40vh;
    object-fit: scale-down;
    object-position: center center;
}

img.post-banner {
    height: 21vh;
    width: 100%;
    object-fit: scale-down;
    object-position: center center;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

span.select2-selection.select2-selection--single {
    border-radius: 0;
}

#user-avatar-modal {
    width: 100%;
    height: 15vh;
    object-fit: scale-down;
    object-position: center center;
}

.nav-item.active a.nav-link {
    font-weight: bolder !important;
}

.summary-card {
    border-left-width: 5px !important;
    border-left-style: solid;
}

.clip-text {
    position: fixed;
    top: 0;
}

@media screen and (max-width: 991px) {
    .center-it{
    color: white;
    padding: 15px;
    padding-top:10rem!important;
    /* position: absolute; */
    /* top: 40%; */
    /* left: 45%; */
    /* -ms-transform: translateX(-50%) translateY(-50%); */
    /* -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%); */
    /* -webkit-transform: translate(0%,-50%); */
    /* transform: translate(0%,-50%); */
    }

    .create-request-width{
        min-width: 70%;
        max-width:90%;
    }

    .modify-request-width{
        min-width: 70%;
        max-width:90%;
        }

    .login-fields{
        padding-top: 1rem!important;
    }

}


@media screen and (min-width: 992px) and (max-width: 1500px) {
    .center-it{
    color: white;
    padding: 15px;
    padding-top:2rem;
    /* position: absolute; */
    /* top: 40%; */
    /* left: 45%; */
    /* -ms-transform: translateX(-50%) translateY(-50%); */
    /* -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%); */
    /* -webkit-transform: translate(0%,-50%); */
    /* transform: translate(0%,-50%); */
    }
    .center-it-home{
        padding-top:7rem!important;
        }

    .center-it-register{
        padding-top:1rem!important;
        }
    
    .center-it-update-profile{
        padding-top:1rem!important;
        }
    
    .login-fields{
        padding-top: 2rem!important;
    }

}

@media screen and (min-width: 1501px) {
    .center-it{
        color: white;
        padding: 15px;
        padding-top:10%;
        }

    .center-it-home{
        padding-top:12%!important;
        }

    .center-it-register{
        padding-top:5%!important;
        }
    
    .center-it-update-profile{
        padding-top:5%!important;
        }

}


.btn-primary {
    color: #fff;
    background-color: var(--main-color);
    border-color: #677995;
}
  
.btn-primary:hover {
    color: #fff;
    background-color: #3d5577;
    border-color: #677995;
}
  
.btn-check:focus + .btn-primary, .btn-primary:focus {
    color: #fff;
    background-color: #3d5577;
    border-color: #677995;
    box-shadow: 0 0 0 0.25rem #8894ac;  
}
  
.btn-check:checked + .btn-primary, .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #3d5577;
    border-color: #677995;
}
  
.btn-check:checked + .btn-primary:focus, .btn-check:active + .btn-primary:focus, .btn-primary:active:focus, .btn-primary.active:focus, .show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem #8894ac;
}
  
.btn-primary:disabled, .btn-primary.disabled {
    color: #fff;
    background-color: var(--main-color);;
    border-color: #677995;
 }
  
 .btn {
    text-transform: unset !important;
    font-size: medium;
}

.create_request_input_field{
      color: var(--main-color);
      margin-top: 1rem;
}

input[type=text]:focus, 
input[type=number]:focus, 
input[type=date]:focus, 
input[type=password]:focus, 
input[type=email]:focus, 
input[type=file]:focus, 
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:  var(--secondary-color);
    box-shadow: 0 0 0 0.1rem var(--secondary-color);
}
  
h4, h5 {
    color: var(--main-color);
}


/* DATE INPUT FIELDS */
.form-control[type="date"] {
    position: relative;
}

.calendarIcon {
    position: relative;
    -webkit-appearance: none; /* Removes default styling on WebKit browsers */
    -moz-appearance: none; /* Removes default styling on Mozilla browsers */
    appearance: none; /* Standard way to remove default styling */
    background: url("data:image/svg+xml,<svg fill='%231C345C' viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'><path d='M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z' /><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 6.5px;
    background-size: 20px 20px;
    cursor: pointer;
    /* Add other styling for your input field (padding, font size, etc.) */
}

.calendarIcon::-webkit-calendar-picker-indicator {
    position: absolute;
    width: 75%; /* Make the picker cover the entire input field */
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0; /* Invisible but still functional */
    cursor: pointer;
}

/* Ensure that the text cursor appears when hovering over the input field */
.calendarIcon:hover {
    cursor: text;
}

@media (max-width: 768px) {
    .calendarIcon::-webkit-calendar-picker-indicator {
        right: 5px; /* Adjust for smaller screens */
    }
}

/* TOOLTIPS */
.tooltip-text {
    width: 200px;
    padding: 5px 0;
    z-index: 1;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}


.tooltip-container {
    display: inline-block; /* Keeps the container in line */
    position: relative; /* Positions the tooltip text relative to the icon */
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 100%; /* Adjust to position tooltip above the icon */
    left: 50%; /* Center it above the icon */
    transform: translateX(-50%);
    background-color:  var(--main-color);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}


.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Position at the bottom of tooltip text */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust to perfectly center */
    border-width: 5px;
    border-style: solid;
    border-color: var(--main-color) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.go-back-icon{
    float: right; 
    color: var(--main-color); 
    margin-bottom: 0.5rem;
}

.go-back-icon:hover{
    float: right; 
    color: #3d5577;
    margin-bottom: 0.5rem;
}

.button-width-20{
    width: 20vw;
}

.button-width-22{
    width: 22vw;
}

#userInput {
    background-image: url('/css/searchicon.png'); /* Add a search icon to input */
    background-position: 10px 12px; /* Position the search icon */
    background-repeat: no-repeat; /* Do not repeat the icon image */
    width: 100%; /* Full-width */
    font-size: 16px; /* Increase font-size */
    padding: 12px 20px 12px 40px; /* Add some padding */
    border: 1px solid #ddd; /* Add a grey border */
    margin-bottom: 12px; /* Add some space below the input */
  }

  .requestsTable, .requestsTableHeader, .requestsTableRow{
    margin-top:1rem;
    color: var(--main-color);
  }   
  
  #requestsTable {
    border-collapse: collapse; /* Collapse borders */
    width: 100%; /* Full-width */
    border: 1px solid #ddd; /* Add a grey border */
    font-size: 18px; /* Increase font-size */
  }
  
  #requestsTable th, #requestsTable td {
    text-align: left; /* Left-align text */
    padding: 12px; /* Add padding */
  }
  
  #requestsTable tr {
    /* Add a bottom border to all table rows */
    border-bottom: 1px solid #ddd;
  }
  
  #requestsTable tr.header, #requestsTable tr:hover {
    /* Add a grey background color to the table header and on hover */
    background-color: #f1f1f1;
  }

  .search-container {
    display: flex;
    align-items: center;
  }
  
  .search-input {
    flex: 1 1 95%;
  }
  
  .go-back-icon {
    flex: 1 1 5%;
    text-align: right;
  }
  
  .card-title{
      margin-top:0.5rem;
  }

  .card-body{
    text-align: -webkit-center;
  }
  
  .form-group{
      text-align: left;
  }

  .delete-file-btn{
    color: var(--main-color);
  }

  .delete-file-btn:hover {
    /* Add a grey background color to the table header and on hover */
    color: #f27474;
  }

  .switch {
    position: relative;
    display: block;
    vertical-align: top;
    width: 100px;
    height: 30px;
    padding: 3px;
    margin: 0 10px 10px 0;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
    border-radius: 18px;
    box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
  }
  .switch-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
  }
  .switch-label {
    position: relative;
    display: block;
    height: inherit;
    font-size: 10px;
    text-transform: uppercase;
    background: #eceeef;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
  }
  .switch-label:before, .switch-label:after {
    position: absolute;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    -o-transition: inherit;
    transition: inherit;
  }
  .switch-label:before {
    content: attr(data-off);
    right: 11px;
    color: #aaaaaa;
    text-shadow: 0 1px rgba(255, 255, 255, 0.5);
  }
  .switch-label:after {
    content: attr(data-on);
    left: 11px;
    color: #FFFFFF;
    text-shadow: 0 1px rgba(0, 0, 0, 0.2);
    opacity: 0;
  }
  .switch-input:checked ~ .switch-label {
    background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
  }
  .switch-input:checked ~ .switch-label:before {
    opacity: 0;
  }
  .switch-input:checked ~ .switch-label:after {
    opacity: 1;
  }
  .switch-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
    background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
    border-radius: 100%;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  }
  .switch-handle:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -6px;
    width: 12px;
    height: 12px;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
    border-radius: 6px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
  }
  .switch-input:checked ~ .switch-handle {
    left: 74px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
  }
  
  /* Transition
  ========================== */
  .switch-label, .switch-handle {
    transition: All 0.3s ease;
    -webkit-transition: All 0.3s ease;
    -moz-transition: All 0.3s ease;
    -o-transition: All 0.3s ease;
  }

  #competition_cost::after {
    position: absolute;
    top: 0;
    content:"€";
    right: 18px;
}

.switch-input:disabled{
    opacity: 0;
}

#overlay {
    background: #ffffff;
    color: #545454;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 5000;
    top: 0;
    left: 0;
    float: left;
    text-align: center;
    padding-top: 25%;
    opacity: .80;
}

@keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
.spinner {
    margin: 0 auto;
    height: 64px;
    width: 64px;
    animation: rotate 0.8s infinite linear;
    border: 5px solid var(--main-color);
    border-right-color: transparent;
    border-radius: 50%;
}

.expand_sidebar:hover {
    cursor: pointer;
  }

.rounded-0{
    border-radius: 1rem!important;
}

.main-content{
    width: 100%; /* takes up the rest of the space */
}

.card{
    transition: all 0.5s ease;
    margin-left: 200px;
 }

 #header{
    transition: all 0.5s ease;
    margin-left: 220px;
 }

 #footer{
    transition: all 0.5s ease;
    margin-left: 200px;
 }

 @media screen and (max-width: 1072px){
    .card, #header, #footer{
    margin-left: 0px;
    }
 }

 .proset-redirect-url:hover{
     color:#000;
 }

 /* div.dataTables_wrapper div.dataTables_filter input, label {
     display: none;
 } */
 
 #meletesTable_wrapper{
    overflow-x: auto;
 }

 #meletesTable tbody tr:hover {
    background-color: #dcdcdc;
  }


.page-item.active .page-link {
    background-color: #1c345c;
}

.btn-home-page{
    color: var(--main-color);
    background-color: white;
}

.btn-home-page-notifications{
    color: var(--main-color);
    background-color: var(--secondary-color);
}

.btn-home-page-notifications:hover {
    color: #fff;
    background-color: #3d5577;
    border-color: #677995;
}

/* Notification Icon Styles */
.notification-icon-container {
    position: relative;
    min-height: 20px; /* Adjust the height as needed */
}

.notification-icon {
    cursor: pointer;
}

.notification-icon i {
    font-size: 24px;
}

.notification-icon .badge {
    position: absolute;
    top: -5px; /* Adjust as needed for positioning */
    right: -5px; /* Adjust as needed for positioning */
    font-size: 16px; /* Adjust font size as needed */
    color: var(--main-color);
}

.notification-dropdown {
    position: absolute;
    top: 100%; /* Position it below the notification-icon-container */
    right: 0px;
    width: 300px; /* Responsive width, adjust as needed */
    max-width: 300px; /* Maximum width for larger screens */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

/* Notification List Styles */
.notification-list {
    max-height: 200px; /* Maximum height, adjust as needed */
    overflow-y: auto; /* Enable scrolling when list exceeds height */
    background-color: #f8f8f8;
    border: 1px solid #ddd;
}


.notification-header {
    background-color: #f8f8f8;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

/* Style for individual notifications (customize as needed) */
.notification-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Style for unread notifications (customize as needed) */
.notification-unread {
    background-color: #e6f7ff;
    font-weight: bold;
}

.notification-item {
    cursor: pointer;
}

.notification-item:hover {
    cursor: pointer;
    background-color: rgb(164 200 226);
}

/* Style seen notifications with grayed-out text */
.notification-item.seen {
    color: gray;
    cursor: pointer; /* Optionally, remove the pointer cursor for seen notifications */
}

/* Alternatively, you can add an icon */
.notification-item.seen::before {
    content: "\f06e"; /* Unicode for a checkmark icon (Font Awesome) */
    font-family: FontAwesome; /* Use a font icon library like FontAwesome */
    margin-right: 5px; /* Adjust spacing between icon and text */
}

/* Modal Content */
.modal-content {
    background-color: #f8f9fa; /* Light background color */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #dee2e6; /* Light border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Modal Header */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}


.modal-header .close {
    text-shadow: none;
}

/* Modal Body */
.modal-body {
    padding: 20px; /* Ample padding for body content */
}

/* Close Button Styling */
.modal-header .close {
    opacity: 1; /* Make close button more visible */
}

/* Optional: Custom Scrollbar for Modal Body */
.modal-body {
    max-height: 400px; /* Set a maximum height */
    overflow-y: auto; /* Add scrollbar if needed */
}

.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* If you are using a <pre> tag for formatted text */
pre {
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 15px;
    font-size: 0.9em;
    line-height: 1.5;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color:rgb(4, 17, 38)!important;
}

 /* Loading spinner */

.spinner-border {
    color:var(--secondary-color)!important; /* Change the color to your desired color */
    width: 4rem; /* Adjust the size of the spinner */
    height: 4rem; /* Adjust the size of the spinner */
}

#loading-text {
    font-size: 24px; /* Adjust the font size of the text */
}
