@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.notification-indicator {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: yellow;
  border-radius: 50%;
}

.table-container {
  max-width: 100%;
  overflow-x: auto;
}


.table-row {
  display: table-row;
}

.table-row[style*="none"] {
  display: none;
}

.mark {
  background-color: yellow;
  color: black;
  font-weight: bold;
}

.table-container label {
  display: table-cell;
  padding-right: 1rem;
  vertical-align: middle;
}

.table-container select {
  display: table-cell;
  width: 100%;
  vertical-align: middle;
}

.container .table-responsive {
  border-collapse: collapse;
  width: 100%;
  color: var(--text-color);
}

.L-container th,
td {
  text-align: left;
  padding: 8px;
  border: 3px solid #ddd;
}

.L-container th {
  color: #fff;
  background-color: var(--primary-color);
}

tr.heading-row th {
  color: #333;
  background-color: #fff;
  border-color: #333;
}

.custom-header {
  background-color: #2b519a; /*var(--primary-color);*/
  color: #fff; /* set text color to white for contrast */
}

.myfieldclass {
  width: 95%;
  margin: 12px 0;
  padding: 12px 20px;
  display: inline-block;
  border: 1px solid rgba(43, 81, 154, 0.5);
  box-sizing: border-box;
  border-radius: 1rem;
}
/*
.my-button {
  position: absolute;
  top: 10px;
  right: 10px;
}
*/
.my-button {
  background-color: #2b519a;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #2b519a;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.my-button:hover {
  opacity: 0.9;
}

/*end add*/

.bg-opacity {
  overflow: hidden;
  background: url("../images/bg.jpg");
  background-position: right;
  background-repeat: repeat-y;
}
.P-container {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 70%;
  display: block;
  box-shadow: 0 4px 8px 0 rgba(43, 81, 154, 0.5),
    0 6px 20px 0 rgba(43, 81, 154, 0.5);
  border-radius: 1rem;
  min-height: 550px;
  max-height: 90vh; /* set a maximum height */
  overflow-y: auto;
  transform: translate(-50%, -50%);
}
.container_login {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 50%;
  display: block;
  box-shadow: 0 4px 8px 0 rgba(43, 81, 154, 0.5),
    0 6px 20px 0 rgba(43, 81, 154, 0.5);
  border-radius: 1rem;
  min-height: 550px;
  max-height: 90vh; /* set a maximum height */
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.container {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 70%;
  max-width: 100%;
  display: block;
  box-shadow: 0 4px 8px 0 rgba(43, 81, 154, 0.5),
    0 6px 20px 0 rgba(43, 81, 154, 0.5);
  border-radius: 1rem;
  /*min-height: 550px; */
  max-height: 90vh; /* set a maximum height */
  overflow-y: auto;
  transform: translate(-50%, -50%);
}

.container_mod {
  position: relative;
  border-color: red;
  border-width: 1px;
  border-style: solid;
  left: 50%;
  top: 50%;
  /* width: 90%; Adjust the width as needed for responsiveness */
  max-width: 100%;/*  Ensure it doesn't exceed the viewport width */
  display: block;
  box-shadow: 0 4px 8px 0 rgba(43, 81, 154, 0.5),
    0 6px 20px 0 rgba(43, 81, 154, 0.5);
  border-radius: 1rem;
  max-height: 90vh; /* set a maximum height */
  overflow-y: auto;
  transform: translate(-50%, -50%);
}

.container_form {
  width: 100%;
  top: 10%;
  overflow-y: auto;
}

.log-home {
  border-right: 1px solid #ddd;
}
.log-home img {
  max-height: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: center;
  align-items: center;
  padding-top: 80px;
}
.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
}
.circle-logo img {
  width: 120px;
}

.L-container {
  margin-top: 30px;
}

.L-container button {
  background-color: #2b519a;
  width: 30%;
  color: #ffff;
  border-radius: 1rem;
  padding: 15px;
  margin: 10px 0px;
  border: none;
  cursor: pointer;
}

.L-container button-cancel {
  background-color: #9fa6b2;
  width: 30%;
  color: #ffff;
  border-radius: 1rem;
  padding: 15px;
  margin: 10px 0px;
  border: none;
  cursor: pointer;
}

/* .L-container form { 
     border: 3px solid #f1f1f1; 
 }  */
.L-container input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
select[class="form-select"],
[class="form-control"] {
  width: 75%;
  margin: 12px 0;
  padding: 12px 20px;
  display: inline-block;
  border: 1px solid rgba(43, 81, 154, 0.5);
  box-sizing: border-box;
  border-radius: 1rem;
}

.L-container input[type="table_text"] {
  /* width: 50%;  */
  margin: 2px 0;
  padding: 2px 2px;
  display: inline-block;
  border: 1px solid rgba(43, 81, 154, 0.5);
  box-sizing: border-box;
  border-radius: 0.25rem;
}

/* .L-container select[class=form-select], [class=form-control] { 
  width: 75%; 
  margin: 12px 0;
  padding: 12px 20px; 
  display: inline-block; 
  border: 1px solid rgba(43, 81, 154, 0.5); 
  box-sizing: border-box;
  border-radius: .5rem;
}  */
.L-container .bi {
  font-weight: bold;
}
/* .L-container [class=form-group], [class=form-select] { 
  width: 75%; 
  margin: 12px 0;
  padding: 12px 20px; 
  display: inline-block; 
  border: 1px solid rgba(43, 81, 154, 0.5); 
  box-sizing: border-box; 
  border-radius: 0.5rem;
  height: 8px;
} */

/*
 .L-container select { 
  width: 75%; 
  margin: 12px 0;
  padding: 12px 20px; 
  display: inline-block; 
  border: 1px solid rgba(43, 81, 154, 0.5); 
  box-sizing: border-box; 
  border-radius: 1rem;
}
 */
.remember {
  color: rgb(53, 53, 53, 0.8);
  margin-left: 240px;
}
.L-container button:hover {
  opacity: 0.9;
}

/* Dashboard */

:root {
  /* ===== Colors ===== */
  --primary-color: #0e4bf1;
  --panel-color: #fff;
  --text-color: #000;
  --black-light-color: #707070;
  --border-color: #e6e5e5;
  --toggle-color: #ddd;
  --box1-color: #4da3ff;
  --box2-color: #ffe6ac;
  --box3-color: #e7d1fc;
  --title-icon-color: #fff;

  --acm-blue: #2b519a;

  /* ====== Transition ====== */
  --tran-05: all 0.5s ease;
  --tran-03: all 0.3s ease;
  --tran-03: all 0.2s ease;
}

/* body{
  min-height: 100vh;
  background-color: var(--primary-color);
} */
body.dark {
  --primary-color: #3a3b3c;
  --panel-color: #242526;
  --text-color: #ccc;
  --black-light-color: #ccc;
  --border-color: #4d4c4c;
  --toggle-color: #fff;
  --box1-color: #3a3b3c;
  --box2-color: #3a3b3c;
  --box3-color: #3a3b3c;
  --title-icon-color: #ccc;
}
/* === Custom Scroll Bar CSS === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #0b3cc1;
}

body.dark::-webkit-scrollbar-thumb:hover,
body.dark .activity-data::-webkit-scrollbar-thumb:hover {
  background: #3a3b3c;
}

nav {
  position: fixed;

  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  padding: 10px 14px;
  background-color: #2b519a;
  border-radius: 0 15px 15px 0;
  border-right: 1px solid var(--border-color);
  transition: var(--tran-05);
}
nav.close {
  width: 73px;
}
nav .logo-name {
  display: flex;
  align-items: center;
}
nav .logo-image {
  display: flex;
  justify-content: center;
  min-width: 45px;
}
nav .logo-image img {
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

nav .logo-name .logo_name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-left: 14px;
  transition: var(--tran-05);
}
nav.close .logo_name {
  opacity: 0;
  pointer-events: none;
}

nav .branch-name {
  display: flex;
  align-items: center;
}

nav .branch-name .branch_name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-left: 14px;
  transition: var(--tran-05);
}
nav.close .branch_name {
  opacity: 0;
  pointer-events: none;
}

nav .menu-items {
  margin-top: 40px;
  height: calc(100% - 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
nav .common-menu-items {
  
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.menu-items li {
  list-style: none;
}
.menu-items li a {
  display: flex;
  align-items: center;
  height: 50px;
  text-decoration: none;
  position: relative;
}
.nav-links li a:hover:before {
  content: "";
  position: absolute;
  left: -7px;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background-color: #ffffff;
}
body.dark li a:hover:before {
  background-color: var(--text-color);
}
.menu-items li a i {
  font-size: 24px;
  min-width: 45px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dddddd;
}
.menu-items li a .link-name {
  font-size: 16px;
  font-weight: 400;
  color: #dddddd;
  transition: var(--tran-05);
}
nav.close li a .link-name {
  opacity: 0;
  pointer-events: none;
}
.nav-links {
  padding-left: 0px !important;
}
.nav-links li a:hover i,
.nav-links li a:hover .link-name {
  color: #fff;
}
body.dark .nav-links li a:hover i,
body.dark .nav-links li a:hover .link-name {
  color: var(--text-color);
}
.menu-items .logout-mode {
  padding-left: 0px !important;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.menu-items .mode {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.menu-items .mode-toggle {
  position: absolute;
  right: 14px;
  height: 50px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mode-toggle .switch {
  position: relative;
  display: inline-block;
  height: 22px;
  width: 40px;
  border-radius: 25px;
  background-color: var(--toggle-color);
}
.switch:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 15px;
  width: 15px;
  background-color: var(--panel-color);
  border-radius: 50%;
  transition: var(--tran-03);
}
body.dark .switch:before {
  left: 20px;
}

.dashboard {
  position: relative;
  left: 250px;
  background-color: var(--panel-color);
  min-height: 100vh;
  width: calc(100% - 250px);
  padding: 10px 14px;
  transition: var(--tran-05);
}
nav.close ~ .dashboard {
  left: 73px;
  width: calc(100% - 73px);
}
.dashboard .top {
  position: fixed;
  top: 0;
  left: 250px;
  display: flex;
  width: calc(100% - 250px);
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: var(--panel-color);
  transition: var(--tran-05);
  z-index: 10;
}
nav.close ~ .dashboard .top {
  left: 73px;
  width: calc(100% - 73px);
}
.dashboard .top .sidebar-toggle {
  font-size: 26px;
  color: var(--text-color);
  cursor: pointer;
}
.dashboard .top .search-box {
  position: relative;
  height: 45px;
  border-radius: 10rem;
  max-width: 600px;
  width: 100%;
  margin: 0 30px;
}
.top .search-box input {
  position: absolute;
  border: 1px solid var(--border-color);
  background-color: var(--panel-color);
  padding: 0 25px 0 50px;
  border-radius: 10px;
  height: 100%;
  width: 100%;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 400;
  outline: none;
}
.top .search-box i {
  position: absolute;
  left: 15px;
  font-size: 22px;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  color: var(--black-light-color);
}
.top img {
  width: 40px;
  border-radius: 50%;
}
.dashboard .dash-content {
  padding-top: 50px;
}
.dash-content .title {
  display: flex;
  align-items: center;
  margin: 60px 0 30px 0;
}
.dash-content .title i {
  position: relative;
  height: 35px;
  width: 35px;
  background-color: var(--primary-color);
  border-radius: 6px;
  color: var(--title-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.dash-content .title .text {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color);
  margin-left: 10px;
}
.dash-content .boxes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.dash-content .boxes .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  width: calc(100% / 3 - 15px);
  padding: 15px 20px;
  background-color: var(--box1-color);
  transition: var(--tran-05);
}
.boxes .box i {
  font-size: 35px;
  color: var(--text-color);
}
.boxes .box .text {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
}
.boxes .box .number {
  font-size: 40px;
  font-weight: 500;
  color: var(--text-color);
}
.boxes .box.box2 {
  background-color: var(--box2-color);
}
.boxes .box.box3 {
  background-color: var(--box3-color);
}
.dash-content .activity .activity-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.activity .activity-data {
  display: flex;
}
.activity-data .data {
  display: flex;
  flex-direction: column;
  margin: 0 15px;
}
.activity-data .data-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
}
.activity-data .data .data-list {
  font-size: 18px;
  font-weight: 400;
  margin-top: 20px;
  white-space: nowrap;
  color: var(--text-color);
}

.container_form {
  position: relative;
}


.role-container {
    border: 1px solid #ddd; 
    padding: 10px;
    display: flex; 
    justify-content: space-between; 
}

.role-option {
    flex-basis: 48%; 
}



.tab-btn {
  padding: 10px 15px;
  cursor: pointer;
  background-color: #f1f1f1;
  border: none;
  font-weight: bold;
  outline: none;
  transition: background-color 0.3s;
}

.tab-btn:hover {
  background-color: #ddd;
}

.tab-btn.active {
  background-color: #ccc;
}


.tab1 {
  background-color: #2B519A;
  color: #FFF;
}

.tab2 {
  background-color: #3C6AB7;
  color: #FFF;
}

.tab3 {
  background-color: #F1C40F;
  color: #333;
}

.tab4 {
  background-color: #E67E22;
  color: #FFF;
}

.tab5 {
  background-color: #16A085;
  color: #FFF;
}

.tab6 {
  background-color: #9B59B6;
  color: #FFF;
}
.nav-link-new, .nav-link-incoming, .nav-link-organize  {
  border: 2px solid green !important;
  color: green !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-pending {
  border: 2px solid  #FFBF00  !important;
  color: #FFBF00  !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-waiting {
  border: 2px solid blue !important;
  color: blue !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-ongoing, .nav-link-outgoing {
  border: 2px solid purple !important;
  color: purple !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-panel {
  border: 2px solid orange !important;
  color: orange !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-closed {
  border: 2px solid gray !important;
  color: gray !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-lost, .nav-link-rejected {
  border: 2px solid red !important;
  color: red !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-link-all, .nav-link-voted {
  border: 2px solid black !important;
  color: black !important;
  border-radius: 5px;
  margin-right: 5px;
}

.nav-pills .nav-link {
  padding: 10px 15px;
}

.nav-pills .nav-link.active {
  border-width: 4px !important;
  font-weight: bold !important;  
  text-decoration: underline !important; 
}
/* .video-player {
  flex: 2;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
} */


.video-player {
  flex: 2;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow around the video player */
  border-radius: 10px; /* Optional: adds rounded corners */
}

video {
  width: 800px; /* Fixed width */
  height: 600px; /* Fixed height */
  max-width: 100%; /* Ensure it's responsive */
} 

details > summary {
  list-style: none; /* Hide the default list marker */
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none; /* Hide the default arrow in WebKit-based browsers */
}

details > summary::marker {
  display: none; /* Hide the default arrow in browsers that support ::marker */
}


/* Additional styling for the toggle sign */
.toggle-sign {
  font-weight: bold;
  margin-right: 8px;
}


#conditional-div.inactive {
  background-color: red; /* For testing */
  
}

#conditional-div.active {
  background-color: white;
  display: block;
}


@media (max-width: 1000px) {
  nav {
    width: 73px;
  }
  nav.close {
    width: 250px;
  }
  nav .logo_name {
    opacity: 0;
    pointer-events: none;
  }
  nav.close .logo_name {
    opacity: 1;
    pointer-events: auto;
  }
  nav li a .link-name {
    opacity: 0;
    pointer-events: none;
  }
  nav.close li a .link-name {
    opacity: 1;
    pointer-events: auto;
  }
  nav ~ .dashboard {
    left: 73px;
    width: calc(100% - 73px);
  }
  nav.close ~ .dashboard {
    left: 250px;
    width: calc(100% - 250px);
  }
  nav ~ .dashboard .top {
    left: 73px;
    width: calc(100% - 73px);
  }
  nav.close ~ .dashboard .top {
    left: 250px;
    width: calc(100% - 250px);
  }
  .activity .activity-data {
    overflow-x: scroll;
  }
}

@media (max-width: 780px) {
  .dash-content .boxes .box {
    width: calc(100% / 2 - 15px);
    margin-top: 15px;
  }
}
@media (max-width: 560px) {
  .dash-content .boxes .box {
    width: 100%;
  }
}
@media (max-width: 400px) {
  nav {
    width: 0px;
  }
  nav.close {
    width: 73px;
  }
  nav .logo_name {
    opacity: 0;
    pointer-events: none;
  }
  nav.close .logo_name {
    opacity: 0;
    pointer-events: none;
  }
  nav li a .link-name {
    opacity: 0;
    pointer-events: none;
  }
  nav.close li a .link-name {
    opacity: 0;
    pointer-events: none;
  }
  nav ~ .dashboard {
    left: 0;
    width: 100%;
  }
  nav.close ~ .dashboard {
    left: 73px;
    width: calc(100% - 73px);
  }
  nav ~ .dashboard .top {
    left: 0;
    width: 100%;
  }
  nav.close ~ .dashboard .top {
    left: 0;
    width: 100%;
  }
}


/* Improved Media Queries */
@media (max-width: 1200px) {
  .container, .container_login, .container_mod, .P-container {
    width: 80%;
  }
}

@media (max-width: 992px) {
  .container, .container_login, .container_mod, .P-container {
    width: 90%;
  }

  .nav-links li a i, .nav-links li a .link-name {
    font-size: 0.8em; /* Smaller icons and text in navigation */
  }

  .dashboard .top {
    padding: 5px; /* Reduce padding */
  }
}

@media (max-width: 768px) {
  .L-container input[type="text"], input[type="password"], input[type="date"], input[type="file"], select[class="form-select"], [class="form-control"] {
    width: 100%; /* Full width for form elements */
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .dashboard .boxes .box {
    width: 100%; /* Full width for dashboard boxes */
    margin-top: 15px;
  }

  .myfieldclass, .L-container button {
    width: 100%; /* Full width for custom fields and buttons */
  }
}
