/* ============ start basic css ============ */

/* p, h1, h2, h3, h4, h5, h6, li, td, tr, th, strong, label, input::placeholder, .text-muted, .text-black, .text-dark, .nav-link, .form-control, .modal-title{
  color: #7c7c7c;
} */

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

.bs {
  box-shadow: 0 0 2rem 0 rgb(215 215 215);
}

.bd-bottom {
  border-bottom: 3px solid #0E486C;
}

table th {
  font-size: 14px;
  padding: 2px 2px !important;
}

table td {
  padding: 2px 2px !important;
  font-size: 14px;
  border-color: #afa3a350 !important;
}

table tr {
  border-color: #afa3a350 !important;
}

.action-btn {
  background-color: #cccccc;
  padding: 0px 5px;
  border: none;
}

.action-btn:hover {
  background-color: #dddddd;
}

.default-btn {
  border: none;
  color: #ffffff;
  background-color: #0E486C;
  padding: 10px 24px;
  font-size: 18px;
  transition: .2s;
}

.default-btn:hover {
  background-color: #59707e;
}

/* ============ end basic css ============ */
/* ============ theme css ============ */
/* Light theme (default) */
/* :root {
    --custom-bg-color: #ffffff;
    --custom-text-color: #7c7c7c;
    --custom-header-bg: #f8f9fa;
    --custom-card-bg: #ffffff;
    --custom-border-color: #dee2e6;
    --custom-link-color: #0d6efd;
    --custom-hover-color: #0b5ed7;
} */

/* Dark theme */
[data-theme="dark"] {
    --custom-bg-color: #2d2b2b;
    --custom-body-bg: #000000;
    --custom-text-color: #ffffff;
    --custom-header-bg: #1a1a1a;
    --custom-card-bg: #1e1e1e;
    --custom-border-color: #444;
    --custom-link-color: #6ea8fe;
    --custom-hover-color: #757575;
    --custom-simple-bg: #0E486C40;
    --custom-button-bg: #0f68a0;
}

/* Apply theme colors */
body, .bg-light, .bg-white, .accordion-item, .page-link {
    background-color: var(--custom-bg-color) !important;
    color: var(--custom-text-color) !important;
}

.accordion-button{
  background-color: #0E486C;
}

strong, .text-dark, .nav-link, .form-control,  label,  .modal-title,
.text-black,
h4, h5,
.text-muted
{
  color: var(--custom-text-color) !important;
}

.navbar, .form-control,
.list-group-item
{
    background-color: var(--custom-bg-color);
}

.modal-dialog {
    background-color: var(--custom-bg-color) !important;
}

.single-card {
  background-color: var(--custom-simple-bg);
}

.wrapper {
    background-color: var(--custom-bg-color) !important;
}



table tr td, table th {
    background-color: var(--custom-bg-color) !important;
    color: var(--custom-text-color) !important;
}

/* Add smooth transitions for theme changes */
/* body, .navbar, .card, a {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
} */
/* ============ end theme css ============ */
/* =========== utility ========== */

.single-card {
  transition: 0.3s;
  min-height: 140px;
  background-color:  #0E486C !important;
}

.single-card:hover {
  transform: scale(1.05);
  background-color: #0E486C !important;
}

.single-card h6 {
  font-size: 18px;
  font-weight: 700;
}

.single-card span, .single-card p, .single-card p i.bi {
  color: #fff;
}

.card-icon {
  padding: 2px;
}

.page-link {
  font-size: 12px;
}

.active>.page-link,
.page-link.active {
  background: #0E486C !important;
  border: 1px solid #0E486C;
}

.page-link {
  color: #7c7c7c;
}

/* ========== end utility =========== */
/* ===================== */
.wrapper {
  display: flex;
  background-color: #F1F4F9;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  transition: all 0.3s ease-in-out;
  flex: 1; /* take remaining space */
  min-width: 0; /* allow shrinking inside flex */
  /* overflow-x: auto;  enable horizontal scroll for big content */
}

main.content {
  min-height: 100vh;
}

/* ======== Start sidebar ============= */
.sidebar-wrap {
  margin: 20px;
}

#sidebar {
  width: 90px;
  min-width: 90px;
  /* transition: all 0.3s ease-in-out; */
  display: flex;
  flex-direction: column;
  background-color: #0E486C;
}

#sidebar.expand {
  width: 300px;
  min-width: 300px;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
  display: none;
}

.toggle-btn {
  width: 30px;
  height: 30px;
  color: #faf8f8;
  border-radius: 0.5rem;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0E486C;
}

.toggle-btn i {
  color: #fff;
}

/* #sidebar.expand .sidebar-logo,
#sidebar.expand .sidebar-link span {
  animation: fadeIn 1s ease;
} */

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.sidebar-logo a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.sidebar-logo a:focus {
  border: none !important;
}

.sidebar-nav {
  padding: 0.7rem 0;
  flex: 11auto;
  z-index: 10;
}

a.sidebar-link {
  padding: .625rem 1.65rem;
  color: #fff;
  display: block;
  white-space: nowrap;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.sidebar-link i,
.dropdown-item i {
  font-size: 1.1rem;
  margin-right: 0.75rem;
}

a.sidebar-link:hover {
  background-color: #7c7c7c50;
  border-left: 3px solid #49C2AF;
}

.left_menu_active {
  background-color: #7c7c7c50;
  border-left: 3px solid #49C2AF !important;
}

.sidebar-item {
  position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  position: absolute;
  top: 0;
  left: 90px;
  background-color: #0E486C;
  padding: 0;
  min-width: 15rem;
  display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
  display: block;
  width: 100%;
  opacity: 1;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-dropdown {
  left: 100%;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0px 2px 2px 0px;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  transform: rotate(-133deg);
  transition: all 0.3s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all 0.3s ease-out;
}

.sidebar-dropdown .sidebar-link {
  position: relative;
  padding-left: 3rem;
  transition: all 0.3s;
}

.sidebar-dropdown a.sidebar-link::before {
  content: "";
  height: 0.125rem;
  width: 0.375rem;
  background-color: #7c7c7c;
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.sidebar-dropdown a.sidebar-link:hover {
  background: transparent;
  border-left: 3px solid transparent;
  padding-left: 3.5rem;
  color: #fff;
}

/* ======== end sidebar ============= */
/* ========= start header top nav ============ */


.navbar-expand .navbar-collapse {
  min-width: 200px;
}

.avater {
  height: 40px;
  width: 40px;
}

/* ========= end header top nav ============ */
/* ========= start user profile header ============ */
.cover-photo {
  border-radius: 10px 10px 0px 0px;
  background-image: url('../img/profile-cover-old.webp');
  background-size: 100% 100%;
  height: 200px;
}

.profile-header-content {
  position: relative;
}

.profile-pic {
  position: absolute;
  top: -25%;
  left: 3%;
}

.profile-pic img {
  max-width: 100px;
  max-height: 100px;
}

.profile-name {
  font-weight: 700;
}

.role span {
  background-color: #d9d9d9;
  padding: 2px 10px;
}

.accordion-button {
  background-color: #0E486C;
  color: white;
}

/* ========= end user profile header ============ */

/* ========= start view copany info page ============ */
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  max-width: 500px;
  width: 100%;

}

.form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #343a40;
}

.form-control,
.form-select {
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#edit_btn {
  width: 100%;
}

.form-label {
  font-weight: 500;
  color: #495057;
}

@media (max-width: 576px) {
  .form-container {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* ========= end company info page ============ */

/* ========= start Edit Employee page ============ */
/* Vertical tabs styling */
.nav-pills {
  padding-right: 15px;
}

.nav-pills .nav-link {
  text-align: left;
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 4px;
  color: #495057;
  background-color: transparent;
  position: relative;
}

.nav-pills .nav-link.active {
  background-color: #0E486C;
  color: #fff !important;
  font-weight: bold;
  border-left: 3px solid #ffffff;
}

.arrow-indicator {
  display: none;
  color: #ffffff;
  font-weight: bold;
  right: -10px;
}

.nav-pills .nav-link.active .arrow-indicator {
  display: block;
}

.tab-content {
  min-height: 300px;
}

/* ========= end Edit Employee page ============ */
/* ==================== */

.Treant {
  width: 100%;
  height: 100%;
}

.node {
  padding: 5px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 130px;
  max-height: 130px;
  overflow: overlay;
  font-size: 12px;
}

.node img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  float: none !important;
}

p.node-title {
  font-weight: 700;
  color: #8b8b8b;
}

#tree-simple {
  cursor: grab;
}

#tree-simple:active {
  cursor: grabbing;
}

#tree_wrapper {
  height: 800px;
  overflow: hidden;
  position: relative;
}

#tree-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

#tree-simple {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  overflow: visible !important;
}

/* ================== */
/* ======= company news =========== */
.company-news-welcome-card {
    background: linear-gradient(135deg, #3a6ea5 0%, #2c5282 100%);
    border-radius: 12px;
    color: white;
}

.company-news-category-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.company-news-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.company-news-category-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.company-news-news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    
}

.company-news-news-card:hover {
    transform: translateY(-3px);
}

.company-news-img {
    height: 180px;
    object-fit: cover;
}

.company-news-badge-date {
    background-color: #0E486C;
    color: #ffffff;
}

.company-news-category-badge {
    background-color: #0E486C;
    color: #ffffff;
    font-weight: 500;
}

.company-news-read-more {
    color: #0E486C;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 5px;
    background-color: #3995ce;
}

.company-news-read-more:hover {
    text-decoration: underline;
}
/* ======= end company news =========== */

/* ======= taining module =========== */
.m-training-card-header-img{
    background-image: url('../img/mt_invite.jpg');
    height: 100%;
    width: 100%;
}
.o-training-card-header-img{
    background-image: url('../img/ot_invite.jpg');
    height: 100%;
    width: 100%;
}
/* ======= end training module =========== */