/* custom.css */
:root {
    --bs-primary: #a0ccfa; /* Set the new primary color */
    --bs-primary-hover: #57a2f3; /* Optional: Hover state color */
    --primary-color: #036492; /* Define the variable */
    --primary-dark-color: #024563; /* Define the variable */
    --secondary-color: #5BC4BF; /* Define the variable */
    --light-color: #D6EEEE; /* Define the variable */
    --info:  #036492;
}
@font-face {
    font-family: 'Alexandria';
    src: url('../font/Alexandria-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Supports variable font weights */
    font-style: normal;
  }
body {
    font-family: 'Alexandria', sans-serif;
    font-size: 14px;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensure the wrapper covers the entire viewport height */
}

.content-wrapper {
    flex: 1; /* Allow the content-wrapper to grow and take available space */
    padding-bottom: 20px; /* Ensure some space above the footer */
}

.content-header {
    padding: 5px .5rem;
}
.content-header h1 {
    font-size: 1rem;
    margin: 0;
}
.card-title {
    float: left;
    font-size: 14px;
    margin: 0;
}

.card-footer {
    background-color: #ffffff; /* White background */
    text-align: center; /* Optional: Center-align content */
}
.dataTables_wrapper .actions-column {
    white-space: nowrap;
}
.card .overlay {
    background-color: rgba(227, 224, 224, 0.5); /* Semi-transparent background */
    position: absolute; /* Absolute positioning to cover the card */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure it appears above card content */
    display: none;
}

/* Ensure the card container uses relative positioning for overlay to work */
.card {
    position: relative; /* This ensures the overlay is scoped to the card */
}
dt {
    font-weight: 600;
}
.form-control {
    font-size: 14px;
}
.btn {
    font-size: 14px;
}
.table.table-bordered.dataTable {
    border-right-width: 0;
    font-size: 14px;
    color: #343a40;
}
.text-sm {
    font-size: 11px !important;
}
label:not(.form-check-label):not(.custom-file-label) {
    font-weight: 500;
}
.dropdown-menu-lg .dropdown-item {
    padding: .5rem 1rem;
    font-size: 12px;
    font-weight: 300;
}
.dropdown-menu-lg {
    max-width: 350px;
    min-width: 280px;
    padding: 0;
}
.navbar-nav>.user-menu>.dropdown-menu>li.user-header>p {
    z-index: 5;
    font-size: 14px;
    margin-top: 10px;
}
/* Make Toastr Box Bigger */
.toast {
   
    padding: 20px; /* Add more padding */
    min-width: 400px; /* Set minimum width */
    min-height: 70px; /* Set minimum height */
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #9ea7b1;
}

.user-form-page .card.card-tabs {
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Adjust as needed */
}

.user-form-page .tab-content {
    flex-grow: 1;
}

.login-box-msg {
    font-size: 1.4rem; /* Make message text bigger */
}

.nav-item > .nav-link.active {
    background-color: var(--primary-color) !important; /* Blue color */
    color: #ffffff !important;
}
.nav-treeview > .nav-item > .nav-link.active {
    background-color: #d5d7d8 !important; /* Gray for active child links */
    color: #343a40 !important;           /* Dark gray text */
}

/* Center the preloader */
.preloader {
    position: fixed; /* Position it relative to the viewport */
    top: 50%;        /* Move to the vertical center */
    left: 50%;       /* Move to the horizontal center */
    transform: translate(-50%, -50%); /* Adjust for the element's size */
    z-index: 9999;   /* Ensure it appears above other elements */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(221, 218, 218, 0.9); /* Optional: Add a white overlay */
    width: 100%; /* Cover the full screen */
    height: 100%; /* Cover the full screen */
}

/* Hide the preloader after the page loads */
.preloader.hidden {
    display: none; /* Use this class to hide the preloader */
}

.btn-status {
    font-size: 10px; /* Slightly smaller font */
    min-width:130px;
    padding: 0.3rem 0.8rem; /* Adjust padding */
    font-weight: 300; /* Slightly bold text */
    border-radius: 50rem !important;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Add hover effect */
}

.btn-status:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15); /* Add hover shadow */
}

.timeline > div > .timeline-item > .timeline-header {
    /* Your custom styles here */
    font-size: 14px;
    color:#046978;
    font-weight: 400;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    line-height: 1.1;
    margin: 0;
    padding: 10px;
}
.custom-timeline-header{
     /* Your custom styles here */
     font-size: 14px;
     color:#046978;
     font-weight: 400;
     margin: 0;
     padding: 10px;
}
.custom-timeline-header-container{
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-size: 12px;
    padding: 5px;
    color:#848787;
}
.d-flex > button {
    margin-left: 7px; /* Add space between buttons */
}
.d-flex > button:first-child {
    margin-left: 0; /* Ensure no space before the first button */
}
.delete-status-btn {
    font-size: 12px; /* Small text size */
    padding: 0.25rem 0.5rem; /* Adjust padding */
    line-height: 1; /* Compact line height */
    margin-bottom: .35rem !important;
    color:#848787;
}
.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

.small-icon {
    font-size: 14px; /* Adjust size */
   
    cursor: pointer; /* Show pointer on hover */
    vertical-align: middle; /* Align with text */
}

.card-info:not(.card-outline)>.card-header {
    background-color: var(--primary-color);
}
.btn-info {
    color: #fff;
    background-color:var(--primary-color);
    border-color:var(--primary-color);
    box-shadow: none;
}
.text-secondary-color{
    color: var(--secondary-color); /* Darker gray on hover */
}
.text-secondary-color:hover{
    color: var(--primary-color); /* Darker gray on hover */
}

.text-primary-color{
    color: var(--primary-color); /* Darker gray on hover */
}
.text-primary-color:hover{
    color: var(--primary-dark-color); /* Darker gray on hover */
}

.modal-header {
    background-color: var(--primary-color);
    color:white;
}
.modal-header .close{
    
    color:white;
}
#toast-container .toast-success {
    background-color:var(--primary-color);
}
/* Background color for dropdown-header and dropdown-footer in notifications */
.notifications-dropdown .dropdown-footer,
.notifications-dropdown .dropdown-header {
    background-color: var(--light-color); /* Replace with your desired color */
    font-size: 12px; /* Adjust size */
    
}
.bg-light{
    background-color: var(--light-color);
}

/* Login page */
.login-card {
    /* border-top: 8vh solid var(--primary-color);*/
     background-color: white /* Example background */
   }
   .login-card .card-header {
     display: flex;
     flex-direction: column; /* Arrange items vertically */
    /* height: 30vh; /* Adjust based on the design; 30vh = 30% of the viewport height */
     max-height: 279px; /* Ensure it doesn't exceed 279px on larger screens */
     width: 100%; /* Full width for responsiveness */
     background-color: rgba(214, 238, 238, 0.35); /* Example background */
     align-items: center; /* Center content vertically */
     justify-content: center; /* Center content horizontally */
     border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
     /* padding: 20px; /* Add some padding */
     gap: 10px; /* Add spacing between the image and h3 */
     border-top: 8vh solid var(--primary-color);
   }
   .btn-secondary-color{
    background-color: var(--secondary-color);
    color: white;
    font-size: 17px;
    font-weight: 300 !important; /* Correct value */
    border: 1px solid var(--secondary-color);
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
  }
  .btn.btn-secondary-color:hover {
    background-color: var(--light-color) !important;
    color: black !important;
    font-size: 17px;
    font-weight: 300 !important;
    border: 1px solid var(--light-color) !important;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
  }
  /* Disabled button styles */
  .btn-secondary-color:disabled {
    background-color: var(--light-color); /* Lighter color for disabled state */
    color: gray; /* Text color for disabled state */
    font-size: 17px;
    font-weight: 300;
    border: 1px solid var(--light-color);
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    cursor: not-allowed; /* Change cursor to indicate disabled state */
    opacity: 0.7; /* Optional: Dim the button for disabled effect */
  }
 /* Remove underline and set color for login page links */
 .login-link {
    text-decoration: none;
    color:  #000000;
    font-size: 14px; /* Set the font size to 23px */
  font-weight: 300; /* Regular font weight */
  transition: color 0.3s ease; /* Smooth color transition */

  }

  /* Optional: Change color and style on hover */
  .login-link:hover {
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
  }
  .checkbox-label {
    margin-left: 8px; /* Space for LTR */
  }
  
  [dir="rtl"] .checkbox-label {
    margin-left: 0;
    margin-right: 8px; /* Space for RTL */
  }
  
  .checkbox-label{
    color:  #000000;
    font-size: 14px; /* Set the font size to 23px */
  font-weight: 300; /* Regular font weight */
  }
  .input-group {
    margin-bottom: 20px; /* Add consistent space between input groups */
  }
  .input-group .form-control {
    border-radius: 0; /* Optional: Uniform border radius */
  }
  .input-group-text {
      height: 100%; /* Make the height match the input field */
     
      align-items: center; /* Vertical centering of the icon */
      justify-content: center; /* Horizontal centering of the icon */
    }
    .row {
      margin-top: 10px; /* Add space between rows */
    }
  
    .input-group .form-control.rounded-right {
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
      border-top-right-radius: 0.25rem !important;
      border-bottom-right-radius: 0.25rem !important;
    }
    
    .input-group .form-control.rounded-left {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
      border-top-left-radius: 0.25rem !important;
      border-bottom-left-radius: 0.25rem !important;
    }
    .input-group-text.rounded-right {
      border-top-right-radius: 0.25rem !important; /* Adjust radius as needed */
      border-bottom-right-radius: 0.25rem !important;
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
    }
    .input-group-text.rounded-left {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
      border-top-left-radius: 0.25rem !important;
      border-bottom-left-radius: 0.25rem !important;
    }
    .input-group {
        margin-bottom: 20px; /* Add consistent space between input groups */
      }
      .input-group .form-control {
        border-radius: 0; /* Optional: Uniform border radius */
      }
      .input-group-text {
          height: 100%; /* Make the height match the input field */
         
          align-items: center; /* Vertical centering of the icon */
          justify-content: center; /* Horizontal centering of the icon */
        }
        .login-box-msg {
            font-size: 14px;
            font-weight: 300;
        }
        .header-image {
            width: 97px;
            height: auto;
          }
          
          .header-title {
            margin: 0; /* Remove default margin */
            font-size: 23px; /* Set the font size to 23px */
            font-weight: 300; /* Regular font weight */
            color: var(--primary-color);
          }
          
          /* Ensure equal spacing using gap */
          .card-header {
            gap: auto; /* Automatically distribute equal space */
          }
     .tree-wrapper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    /* Charts */
    .alert-info {
        color: #fff;
        background-color:  var(--primary-color) !important;;
        border-color: #148ea1;
    } 
    .PieChart {
        max-height: 300px;
        width: 100% !important;
        height: 100% !important;
        position: relative;
        filter: drop-shadow(0px 10px 6px rgba(0, 0, 0, 0.2));
        transition: all 0.3s ease;
    }
    
  
    
    /* Add shadow effect */
    .chart-shadow {
        filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
    }
   
    
    .PieChart:hover {
        filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.3));
    }
    .tree-wrapper {
        height: 100%; /* Ensure wrapper fills available space */
        min-height: 300px; /* Fallback minimum height */
    }
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: var(--primary-color) !important;
        border-color:var(--primary-color) !important;
    }
    @media print {
        /* Hide the vertical tabs links */
        #vert-tabs-tab {
            display: none !important;
        }

        /* Expand the content section to full width */
        .col-7.col-sm-9 {
            flex: 0 0 100% !important;
            max-width: 100% !important;
        }
        /* Optionally hide other non-essential elements like buttons */
        .btn, 
        .breadcrumb {
            display: none !important;
        }
    }
    /* Ensure dropdown is wide enough */
.notifications-dropdown .dropdown-menu {
  min-width: 350px !important;
  max-width: 450px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Improve item padding and line control */
.notifications-dropdown .dropdown-item {
  white-space: normal;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.4;
  direction: rtl; /* or ltr based on language */
}

/* Bullet point spacing */
.notifications-dropdown .bullet-point {
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
}

/* Make footer links side-by-side and aligned */
.notifications-dropdown .dropdown-footer {
  font-size: 13px;
  padding: 8px 15px;
}

.notifications-dropdown .dropdown-divider {
  margin: 0;
}
@media screen and (max-width: 600px) {
  .notifications-dropdown .dropdown-menu {
    width: 90vw;
    max-width: 90vw;
    left: auto !important;
    right: 0 !important;
  }
}
