/* ======================================================================
   Project : OmniBase
   Author  : Calvin Westerveld
   Company : Omnius
   Purpose : Exclusief ontwikkeld voor Omnius
   Notes   : Deze code is specifiek gebouwd voor OmniBase en mag alleen
             worden gebruikt binnen het kader van Omnius.
   ====================================================================== */

:root {
    /* Colors */
    --bg-color: #f7f7f7;
    --white: #ffffff;
    --purple: #60229f;
    --light-gray: #c1c1c1;
    --dark-purple: #521d87;
    --darker-purple: #33174e;
    --light-orange: #ff9601;
    --black: #000000;
    --pastelred: #ffadad;
    --pastelyellow: #fdffb6;
    --pastelgreen: #caffbf;
    --pastelblue: #9bf6ff;
    --pastelpurple: #bdb2ff;


    /* Settings */
    --border-radius-sm: 15px;
    --shadow: 0 6px 20px rgba(0, 0, 0, .05);
    --auth-box-padding: 25px;
    --button-border-radius: 50px;
    --button-padding: 10px 15px;
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}


body {
    font-family: "Open Sans", sans-serif !important;
    background-color: var(--bg-color) !important;
    overflow-x: hidden !important;
}

.right {
    float: right !important;
}

.round {
    border-radius: var(--button-border-radius) !important;
}

.auth {
    background-image: url(../images/knight_bg.svg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* Auth */
.auth-container {
    text-align: center;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 45px;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-logo img {
    max-width: 150px;
}

.auth-box {
    width: 30vw;
    height: 30vh;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding: var(--auth-box-padding);
}

.auth-title {
    font-size: 32px;
    color: var(--purple);
    font-weight: 600;
}

.auth-form {
    width: 505;
}

.auth-submit {
    width: 100%;
    background-color: var(--purple);
    color: var(--white);
    border-radius: var(--button-border-radius);
    border: none;
    padding: var(--button-padding);
    font-weight: 500;
}

.auth-submit:hover {
    background-color: var(--dark-purple);
}

.auth-footer small {
    color: var(--light-gray);
}

/* Sidebar */
.sidebar {
    box-shadow: var(--shadow);
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2000; /* make sure it's above main content */
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: var(--black);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: var(--light-orange);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: var(--light-orange);
    background: rgba(255, 255, 255, 0.1);
}

.logo-text {
    transition: opacity 0.3s ease;
    max-width: 140px;
    margin-left: 40px;
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: 100vw;
    padding: 20px;
    transition: all 0.3s ease;
    overflow-x: hidden !important;
}

.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: var(--white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 0.5rem !important;
    margin: 4px 19px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}

.link {
    display: flex;
    flex-direction: row;
    width: 90%;
}

.link-icon {
    padding-left: 5px;
}

.sidebar-logout {
    color: var(--black);
    text-decoration: none;
}

.sidebar-logout:hover {
    color: var(--light-orange);
}

/* Dropdown */
.sidebar-dropdown {
    position: relative; /* necessary for absolute positioning of submenu */
    width: 100%;
}

.sidebar-dropdown .dropdown-toggl {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes arrow to the right */
}

/* Move arrow to the right */
.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
    margin-top: 5px;
}

/* Dropdown menu positioned to the right side */
.sidebar-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 0.5rem 1rem;
    animation: fadeDown 0.2s ease;
    z-index: 3000; /* 👈 ensure it’s on top */
}

/* Show submenu when open */
.sidebar-dropdown.open .dropdown-menu {
    display: flex;
}

/* Sub-links */
.sidebar-sublink {
    color: var(--black);
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.sidebar-sublink:hover {
    color: var(--light-orange);
    background: rgba(255, 165, 0, 0.08);
    transform: translateX(5px);
}

/* Rotate arrow on open */
.sidebar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapsed sidebar behavior */
.collapsed .sidebar-dropdown .dropdown-menu {
    display: none !important; /* hide submenu when sidebar collapsed */
}

/* Overig */

.page-title {
    color: var(--dark-purple);
    font-weight: 600;
}

.card {
    border: none !important;
}

.card-title {
    font-weight: 600 !important;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.birthdays {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.birthday {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.birthday-info {
    display: flex;
    flex-direction: column;
}

.page-title-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.btn.btn-purple {
    background-color: var(--purple);
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    padding: var(--button-padding);
    transition: color .15s ease-in-out;
}

.btn.btn-purple:hover {
    background-color: var(--dark-purple);
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    padding: var(--button-padding);
    transition: color .15s ease-in-out;
}

.btn.btn-orange {
    background-color: var(--light-orange);
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    padding: var(--button-padding);
    transition: opacity .15s ease-in-out;
}

.btn.btn-orange:hover {
    opacity: 0.8;
    transition: opacity .15s ease-in-out;
    background-color: var(--light-orange);
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    padding: var(--button-padding);
}

.wallboard {
    background-color: var(--bg-color);
}

.card {
    border: 1px #ededed solid !important;
}

.dashboard {
    width: 100%;
    color: var(--black) !important;
    text-decoration: none !important;
}

.dashboard-item {
    background-color: var(--white);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: 7px;
    border: 1px #ededed solid !important;
}

.dashboard-item:hover {
    border: 1px rgb(180, 180, 180) solid !important;
    transition: border 0.4s ease;
}

.dashboard-thumbnail i {
    color: var(--light-orange);
    font-size: 32px;
}

.dashboard-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-name {
    font-weight: 600;
    color: var(--black);
    font-size: 16px;
}

.dashboard-category {
    color: var(--light-gray);
}

/* Toasts */

.toast-header {
    gap: 10px !important;
}

.toast-icon {
    height: 20px;
    width: 20px;
    border-radius: 7px;
}

.success {
    background-color: var(--pastelgreen) !important;
}

.danger {
    background-color: var(--pastelred) !important;
}

.h-47 {
    height: 47.5% !important;
}

/* Profile picture user */
.personal-image {
  text-align: center;
}

.personal-image input[type="file"] {
  display: none;
}

.personal-figure {
  position: relative;
  width: 120px;
  height: 120px;
}

.personal-avatar {
  cursor: pointer;
  width: 120px;
  height: 120px;
  box-sizing: border-box;
  border-radius: 100%;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
  transition: all ease-in-out .3s;
}

.personal-avatar:hover {
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}

.personal-figcaption {
  cursor: pointer;
  position: absolute;
  top: 0px;
  width: inherit;
  height: inherit;
  border-radius: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: all ease-in-out .3s;
}

.personal-figcaption:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, .5);
}

.personal-figcaption > img {
  margin-top: 32.5px;
  width: 50px;
  height: 50px;
}

/* Wallboard */

.items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.items .item:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
}

.item-title {
    font-size: 32px;
    color: var(--purple);
    font-weight: 600;
}

.item-text {
    font-size: 16px;
    color: var(--black);
}

.daily-tasks {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

.horizontal-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.newsitem-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--dark-purple);
}

.newsitem-description {
    font-size: 18px !important;
    color: var(--black);
}

/* Admin */
.table-admin {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

.table-admin tr:nth-child(even) {
    background-color: #f8f8f8;
}

.table-admin th, .table-admin td {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
}

.table-admin th {
    background-color: var(--white);
    color: var(--black);
}

.table-admin td {
    color: var(--black);
}

.table-admin td a {
    color: var(--purple);
    text-decoration: none;
}

.admin-table-delete {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    color: var(--light-orange);
}

.admin-table-edit {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    color: var(--purple);
}

.admin-search-form {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    height: 40px;
    font-size: 14px;
}

.admin-search-form .search-input {
    width: 220px;
    border: none;
    background-color: var(--bg-color);
    border-radius: 5px;
    padding: 5px 10px;
}

.admin-search-form .search-input:focus-visible {
    outline: none;
}

.admin-search-form .search-button {
    background-color: var(--purple);
    color: var(--white);
    border: none;
    border-radius: var(--button-border-radius);
    padding: 5px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.admin-search-form .search-button:hover {
    background-color: var(--dark-purple);
    transition: background-color 0.2s ease;
}

.admin-table-pagination {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.pagination-button {
    background-color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 50px;
    color: var(--purple);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pagination-button:hover {
    background-color: var(--dark-purple);
    color: var(--white) !important;
    transition: color 0.2s ease;
}

.pagination-active {
    background-color: var(--light-orange) !important;
    color: var(--white) !important;
}

.pagination {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: var(--purple) !important;
}

.ts-wrapper.plugin-remove_button .item {
    flex-direction: row !important;
}

.leads-chart-wrapper {
    position: relative;
    height: 300px;
}

.badge.badge-danger {
  background-color: var(--pastelred);
  padding: 5px 7px;
  color: black;
}

.badge.badge-success {
  background-color: var(--pastelgreen);
  padding: 5px 7px;
  color: black;
}

.badge.badge-login {
  background-color: var(--pastelpurple);
  padding: 5px 7px;
  color: black;
}

.dynamic-tooltip {
    position: absolute;
    background-color: #531e8c;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.dynamic-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Custom modal style */
.custom-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 10001; /* Ensure it's above other elements */
  justify-content: center;
  align-items: center;
}

/* Modal dialog */
.custom-modal-dialog {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 100%;
}

/* Modal header */
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom close button */
.custom-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Custom modal body */
.custom-modal-body {
  margin: 20px 0;
}

/* Custom modal footer */
.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.btn-open-modal, .btn-close-modal, .btn-save-changes {
  padding: 10px 20px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.btn-close-modal {
  background: #6c757d;
}
/* Custom button styling */
.custom-upload-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-upload-button {
  background: transparent; /* Transparent background */
  border: 1px solid gray; /* Gray border */
  color: gray; /* Text and icon color */
  padding: 15px 30px; /* Padding for a bigger button */
  font-size: 16px; /* Text size */
  border-radius: 10px; /* Rounded corners */
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.custom-upload-button:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Light hover effect */
  border-color: black; /* Darker border on hover */
  color: black; /* Darker text and icon color on hover */
}

.custom-upload-button i {
  font-size: 20px;
  margin-right: 10px; /* Space between icon and text */
}

#fileUpload {
  display: none; /* Hide the actual file input */
}

/* Backdrop (optional) */
.custom-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

/* Wallboard spinner */
.dashboard-spinner {
  display: flex;
  width: 100%;
  height: 80%;
  gap: 15px;
  padding-top: 40px;
  text-align: center;
  justify-content: center;
}