/* custom.css */
:root {
    --bs-primary: #29a7a7; /* Set the new primary color */
    --bs-primary-hover: #29a7a77e; /* Optional: Hover state color */
    --primary-color: #80298f; /* Define the variable */
    --primary-color-hover: #6d247a;
    --primary-dark-color: #29a7a7; /* Define the variable */
    --secondary-color: #29a7a7;
    --secondary-color-hover: #218e8e;
    --light-color: #5dc2c2; /* 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: 16px;
    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 */
}
.img-circle {
    border-radius: 50%;
    background-color: white;
}
/* 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;
}
.btn-info :hover{
    background-color:var(--primary-color-hover);
    border-color:var(--primary-color-hover);
}
.text-secondary-color{
    color: var(--secondary-color) !important; /* Darker gray on hover */
}
.text-secondary-color:hover{
    color: var(--secondary-color-hover); /* Darker gray on hover */
}

.text-primary-color{
    color: var(--primary-color) !important; 
}
.text-primary-color:hover{
    color: var(--primary-color-hover); 
}

.modal-header {
    background-color: var(--primary-dark-color);
    font-size: medium;
    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: white; /* 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: 5vh solid var(--primary-dark-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 */
    }
    .swal-title-sm {
        font-size: 1rem; /* Adjust as needed */
    }
    
    .swal-text-sm {
        font-size: 0.9rem; /* Adjust as needed */
    }
    .dashboard-card {
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        cursor: pointer;
    }

    .dashboard-card:hover {
        transform: scale(1.03);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    }

    .bg-gradient-primary {
        background: linear-gradient(135deg, #007bff, #0056b3);
    }

    .bg-gradient-success {
        background: linear-gradient(135deg, #28a745, #1e7e34);
    }

    .bg-gradient-info {
        background: linear-gradient(135deg, #17a2b8, #117a8b);
    }

    .bg-gradient-dark {
        background: linear-gradient(135deg, #343a40, #1d2124);
    }

    .dashboard-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        opacity: 0.9;
    }
    .btn-outline-primary{
        background-color: var(--primary-dark-color) !important;
        color: white !important;
    }
    .products-dashboard-icons .icon-card {
        text-align: center;
        padding: 20px;
        border-radius: 10px;
        transition: 0.3s ease-in-out;
        cursor: pointer;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 150px;
    }
    
    .products-dashboard-icons .icon-card:hover {
        background: #f8f9fa;
        transform: translateY(-5px);
    }
    
    .products-dashboard-icons .icon-card i {
        font-size: 50px;
        color: var(--secondary-color);
    }
    
    .products-dashboard-icons .icon-text {
        margin-top: 10px;
        font-size: 18px;
        font-weight: 500;
        color: #656a6f;
    }
    .text-product-title {
        color: var(--secondary-color);
        font-size: 20px;
        font-weight: 600;
    }
    .modal-title {
        font-size: 1rem;
        line-height:1.2;
    }
    .btn-primary { 
        background-color:var(--secondary-color);
        border-color:var(--secondary-color);
    }
    .btn-primary:hover {
        background-color:var(--secondary-color-hover);
        border-color:var(--secondary-color-hover);
    }
    .btn-primary:active,
    .btn-primary:focus,
    .btn-primary:focus:active {
        background-color: var(--secondary-color-hover) !important;
        border-color: var(--secondary-color-hover) !important;
        box-shadow: none !important; /* Optional: removes Bootstrap's blue ring */
    }
    .btn-primary:disabled,
    .btn-primary.disabled {
        background-color: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        color: #ffffff !important;
        opacity: 0.6;
        cursor: not-allowed;
    }


    .team-scroll-box{
        max-height: 300px;
        overflow-y: auto;
        padding: 10px 15px; /* ✅ Add horizontal & vertical padding */
        border: 1px solid var(--primary-color);
        border-radius: 4px;
        background:white;
    }
    .tree-wrapper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    #assessmentPieChart {
        max-height: 400px;
        width: 100% !important;
        height: 100% !important;
        position: relative;
    }
    
    #assessment_by_answer {
        position: relative;
        min-height: 300px;
    }
    
    /* Add shadow effect */
    .chart-shadow {
        filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
    }
    #assessmentPieChart {
        filter: drop-shadow(0px 10px 6px rgba(0, 0, 0, 0.2));
        transition: all 0.3s ease;
    }
    
    #assessmentPieChart: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 */
    }
    
    #standardTree, #assessmentPieChart {
        height: 100% !important;
        width: 100% !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;
        }
    }
    @media (max-width: 576px) {
        .modal-dialog {
            max-width: 90%;
            
        }
        .modal-content {
            padding: 0.7rem;
        }
        #projects_tree .jstree-anchor {
            white-space: nowrap; /* Prevents text wrap in long node names */
        }
    }
    .sortable-placeholder {
        height: 60px;
        background: #e9ecef;
        border: 2px dashed #aaa;
        margin-bottom: 10px;
    }
    .task-card {
    cursor: move;
    }
    .qua-card {
    background: linear-gradient(325deg, #29a7a7, #ffffff);
    border-left: 4px solid #1474c7;
    box-shadow: 0 6px 12px rgba(20, 116, 199, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qua-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(20, 116, 199, 0.3);
}
.bg-primary {
    background-color: #29a7a7 !important;
}
@media (max-width: 576px) {
    .table td, .table th {
        font-size: 14px;
        padding: 0.5rem;
    }
}