/*Overriding Colors*/
:root {
  --bs-primary: #76599a;
  --bs-secondary: #b14f9d;
  --bs-success: #f8e1a9;
  --bs-info: #423372;
  --bs-warning: #eb7f31;
  --bs-danger: #9c2d66;
}

/* Overriding the background gradient and text colors ------------------------------------------ */
.bg-gradient-success {
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
}

.shadow-success {
    box-shadow: 0px 4px 20px 0px rgba(118, 89, 154, 0.5); /* Adjusting shadow color */
}

.border-radius-lg {
    border-radius: 1rem; /* Assuming you want to keep the large border-radius */
}

.text-white {
    color: #f8e1a9 !important; /* Adjust text to the EveAI success color */
}

.text-sm {
    font-size: 0.875rem; /* Adjust size if needed, keeping original */
}

/* Override for the link with text-success and text-gradient classes */
.text-success {
    color: var(--bs-primary) !important; /* Use EveAI primary color */
}

.text-gradient {
    background-image: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-weight-bold {
    font-weight: 700; /* Retain bold text */
}

/* Navbar customization ------------------------------------------------------------------------ */
.navbar-light .navbar-brand {
    color: var(--bs-primary) !important; /* Primary color for the brand text */
}

.navbar-light .navbar-nav .nav-link {
    color: var(--bs-secondary) !important; /* Secondary color for the nav links */
}

/* Ensure consistent alignment for all dropdown icons */
.navbar-nav .nav-link i.material-icons {
    font-size: 24px; /* Ensures all icons are the same size */
    vertical-align: middle; /* Align icons vertically with text */
    margin-right: 8px; /* Space between icon and text */
    line-height: 1; /* Prevents misalignment due to line-height issues */
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center; /* Aligns icon and text vertically */
    padding: 0; /* Remove any additional padding */
}

/* Adjust the size and spacing of the material-symbols-outlined icons */
.navbar-nav .nav-link .material-symbols-outlined {
    font-size: 20px; /* Adjust the icon size */
    vertical-align: middle; /* Ensure vertical alignment with text */
    margin-right: 8px; /* Add space between the icon and the text */
    line-height: 1; /* Maintain alignment */
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--bs-primary) !important; /* Primary color on hover/focus */
}

.bg-white {
    background-color: var(--bs-light) !important; /* Adjust the background to a custom light color if needed */
}

.btn.bg-gradient-primary {
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    color: var(--bs-white) !important; /* Ensures text is readable on the gradient */
    border: none;
}

.navbar-toggler .navbar-toggler-bar {
    background-color: var(--bs-secondary); /* Adjusts color of the toggler bars */
}

.dropdown-menu {
    background-color: var(--bs-light); /* Light background for dropdown */
    border-radius: 0.375rem; /* Retains rounded corners */
}

.dropdown-item {
    color: var(--bs-primary) !important; /* Primary color for dropdown items */
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bs-secondary) !important; /* Secondary color for hover/focus background */
    color: var(--bs-white) !important; /* White text on hover/focus */
}

.btn.bg-gradient-primary {
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    color: var(--bs-white) !important;
}

/* Page header customization ------------------------------------------------------------------- */
.page-header {
    background-size: cover;
    background-position: center;
    min-height: 25vh;
    position: relative;
}

.page-header .mask {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary)) !important; /* Gradient overlay */
    opacity: 0.8; /* Adjust opacity to let the background image show through */
}

.page-header h1 {
    color: var(--bs-success) !important; /* Use the success color for the header text */
    margin-top: -1.5rem; /* Adjusted margin to align text properly */
}

.page-header p.lead {
    color: var(--bs-info) !important; /* Use the info color for the lead text */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Ensure consistent padding */
.page-header .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.page-header .col-lg-7 {
    margin-top: -5rem; /* Adjust margin to improve vertical alignment */
}

/* Card and table customization ---------------------------------------------------------------- */
.card {
    border: 1px solid var(--bs-secondary) !important; /* Secondary color for the card border */
    border-radius: 0.5rem; /* Keeps the border-radius consistent */
    box-shadow: 0 4px 8px rgba(118, 89, 154, 0.2); /* Soft shadow with primary color */
}

.table {
    color: var(--bs-body-color) !important; /* Ensure the text color matches the theme */
    background-color: var(--bs-light) !important; /* Light background color */
    border-collapse: separate !important; /* Ensure borders do not collapse */
    border-spacing: 0; /* Remove spacing between table cells */
    border-radius: 0.375rem; /* Rounded corners */
    overflow: hidden; /* Ensure the rounded corners apply to the entire table */
    border: 1px solid var(--bs-secondary) !important; /* Apply border with secondary color */
}

.table thead th {
    color: var(--bs-info) !important; /* Info color for the table headers */
    background-color: var(--bs-light) !important; /* Background for table headers */
    border-bottom: 1px solid var(--bs-secondary) !important; /* Secondary color for the header bottom border */
}

/* Ensures corners are colored */
.table thead th:first-child {
    border-top-left-radius: 0.375rem !important;
}

.table thead th:last-child {
    border-top-right-radius: 0.375rem !important;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.375rem !important;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.375rem !important;
}

.table tbody tr {
    border-top: 1px solid var(--bs-gray-300) !important; /* Subtle border between rows */
}

.table tbody tr:hover {
    background-color: var(--bs-secondary) !important; /* Secondary color on row hover */
    color: var(--bs-white) !important; /* White text on hover */
}

.table tbody tr:hover a,
.table tbody tr:hover p,
.table tbody tr:hover td {
    color: var(--bs-white) !important; /* Ensure all text, links, and paragraphs change to white */
}

.table tbody tr:hover .text-xs {
    color: var(--bs-white) !important; /* Ensure the smaller text also changes to white */
}

.table .text-xs {
    color: var(--bs-body-color) !important; /* Consistent text color in the table cells */
}

input[type="radio"] {
    accent-color: var(--bs-primary); /* Primary color for radio buttons */
}

/* Buttons customization */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.btn-success {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-white) !important;
}

/* Adjust the form group margin */
.form-group {
    margin-top: 1.5rem; /* Adjust for better spacing */
}

/* Card footer customization */
.card-footer {
    /*background-color: var(--bs-light) !important; !* Light background for the footer *!*/
    padding-top: 1rem; /* Adjust padding for consistent spacing */
    padding-bottom: 1rem; /* Adjust padding for consistent spacing */
    /*border-top: 1px solid var(--bs-secondary) !important; !* Border with secondary color *!*/
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.card-footer .pagination {
    padding-left: 0 !important;  /* Remove extra padding */
    padding-right: 0 !important; /* Remove extra padding */
}

/* Pagination customization */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    border-radius: 0.375rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;  /* Add some padding inside the pagination */
    padding-right: 0 !important; /* Add some padding inside the pagination */
}

.pagination .page-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-item.disabled .page-link {
    color: var(--bs-gray-500) !important; /* Disabled state color */
    background-color: var(--bs-gray-200) !important; /* Disabled state background */
    border-color: var(--bs-gray-300) !important; /* Disabled state border */
}

.page-item.active .page-link {
    z-index: 1;
    color: var(--bs-white) !important; /* Active page color */
    background-color: var(--bs-primary) !important; /* Active page background */
    border-color: var(--bs-primary) !important; /* Active page border */
}

.page-item .page-link {
    border-radius: 50% !important; /* Ensure circular buttons */
    margin: 0 5px; /* Add some spacing between buttons */
}

.page-link {
    color: var(--bs-primary) !important; /* Default link color */
    background-color: var(--bs-light) !important; /* Light background for links */
    border: 1px solid var(--bs-secondary) !important; /* Border with secondary color */
    border-radius: 0.375rem; /* Rounded corners */
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem; /* Adjust margin for spacing */
}

.page-link:hover {
    color: var(--bs-white) !important; /* Hover state text color */
    background-color: var(--bs-secondary) !important; /* Hover state background */
    border-color: var(--bs-secondary) !important; /* Hover state border */
}

.page-link i.fa {
    margin-right: 0.25rem; /* Add spacing between icon and text */
}

/* Align text centrally */
.text-center {
    text-align: center !important;
}



