.layout-scenario {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.layout-scenario .sidebar {
  width: 20%;
  padding: 30px 20px;
}

.layout-scenario .sidebar h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.layout-scenario .sidebar .box-sidebar {
  list-style: none;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.layout-scenario .sidebar li {
  padding: 5px 0px;
  cursor: pointer;
  align-items: center;
}

.layout-scenario .sidebar li a{
  font-weight: 400;
  font-size: 14px;
}

.layout-scenario .sidebar ul li.active,
.layout-scenario .sidebar ul li:hover{
  background-color: #f8f9fa;
}

.layout-scenario .sidebar ul li a.active,
.layout-scenario .sidebar ul li a:hover{
  font-weight: 600 !important;
  transition: font-weight 0.3s ease;
}

.layout-scenario .sidebar ul li.active:first-child,
.layout-scenario .sidebar ul li:hover:first-child{
  border-radius: 10px 10px 0 0;
}

.layout-scenario .sidebar ul li.active:last-child,
.layout-scenario .sidebar ul li:hover:last-child{
  border-radius: 0 0 10px 10px;
}

.layout-scenario .sidebar .dropdown-child li{
  padding: unset;
}

.dropdown-child li.active:first-child,
.dropdown-child li:hover:first-child{
  border-radius: unset !important;
}

.layout-scenario .sidebar li:last-child{
  padding-bottom: unset;
}

.layout-scenario .main-content {
  flex: 1;
  padding: 30px 20px;
  width: 80%;
}

.scenario-block .title-scenario{
  padding-bottom: 35px;
}

.layout-scenario .types-scenarios{
  padding-bottom: 10px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
}

.filter-search-area{
  display: flex;
  justify-content: space-between;
}

.category-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px 40px 10px 15px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  width: 200px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.search-area{
  position: relative;
  width: 300px;
}

.search-area .search-input{
  width: 100%;
  height: 37px;
  padding: 10px 40px 10px 15px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-area .search-input:focus {
  border-color: #872434;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.search-area .search-btn{
  position: absolute;
  height: 37px;
  width: 37px;
  bottom: 0px;
  right: 0px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-area .search-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 27px;
  height: 27px;
  fill: #888;
}

.page-filter{
  text-align: center;
}

.filter-bar select {
  min-width: 120px;
  height: 35px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  transition: border 0.2s ease;
}

.filter-bar select:hover {
  border-color: #888;
}

.filter-bar select:focus {
  outline: none;
  border-color: #555;
}

/* Table */

.scenario-table-wrapper {
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.scenario-table-wrapper h3{
  padding-bottom: 15px;
}

.scenario-table-wrapper .table-overflow{
  /* padding: 0 10px 0 10px; */
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  border: 1px solid #dee2e6 ;
  overflow-x: auto;
}

.scenario-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  min-width: 500px;
}

.scenario-table thead th {
  background-color: #f8f9fa;
  text-align: center;
  padding: 14px 12px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #dee2e6;
}

.scenario-table thead th:nth-child(1){
  border-radius: 10px 0 0 0;
}

.scenario-table thead th:nth-child(4){
  border-radius: 0 10px 0 0;
}

.scenario-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
  text-align:center;
}

.scenario-table tbody tr:hover {
  background: #f8faff;
}

.scenario-progress{
  width:35px;
  height:15px;
  color:#333;
  border-radius:2px;
  text-align:center;
  font-size:14px;
  line-height:15px;
}

.scenario-table th:nth-child(2),
.scenario-table td:nth-child(2){
  text-align: left !important;
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  list-style-type: none;
  gap: 8px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #872434;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #edeaeb;
}

.pagination a.active {
    background-color: #872434;
    color: white;
}

#bookmark, #recommended, #latest, #popular {
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .layout-scenario {
    flex-direction: column;
    padding: 10px 10px 20px 10px;
  }

  .layout-scenario .sidebar {
    width: 100%;
    padding: unset;
  }

  .layout-scenario .main-content {
    width: 100%;
    padding: 20px 0 0 0 !important;
  }

  .header-bar {
    gap: 15px;
  }

  .search-area {
    width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
}


.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  position: relative;
}

.sidebar li a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.sidebar li.active > a {
  font-weight: 600;
  color: #000000;
}

.dropdown-child {
  display: none;
  margin-left: 20px;
  margin-top: 5px;
}

.dropdown-child li a {
  padding: 8px 16px 8px 30px;
  display: block;
  color: #333;
  font-size: 13px;
}

.dropdown-child li:hover {
  background-color: #f5f5f5 !important;
}

.dropdown-parent.open > .dropdown-child {
  display: block;
}

.ml-auto{
  margin-left: auto;
  padding-top: 3px;
}

.dropdown-child li.active > a {
  font-weight: bold;
  color: #333;
}
.dropdown-parent .arrow-icon {
  transition: transform 0.3s ease;
}

.dropdown-parent.open .arrow-icon {
  transform: rotate(90deg);
}

.step-container {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  overflow-x: auto;
}

.step-box {
  border: 1px solid #a33;
  border-radius: 8px;
  width: 120px;
  text-align: center;
  font-family: sans-serif;
  overflow: hidden;
}

.step-header {
  background-color: #f9f9f9;
  padding: 5px;
  color: #165c3d;
  font-size: 14px;
  font-weight: bold;
}

.step-body {
  background-color: #eef2f1;
  padding: 5px;
  font-size: 14px;
  font-weight: 500;
}

.step-selected .step-body {
  background-color: #e8c6c6;
}

.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    text-align: center;
    max-width: 700px;
}
.popup-content button{
    background-color: #872434;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    color: #ffffff;
 }
.popup-content p{
  margin: 16px 0px !important;
}