@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
}
::-webkit-scrollbar {
  display: none;
}

/* Cho phép cuộn bằng chuột */
html {
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Hiển thị thanh cuộn khi hover */
html:hover {
  overflow-y: auto;
}
body {
  margin: 0; /* Loại bỏ lề mặc định */
  padding: 0; /* Loại bỏ padding mặc định */
  box-sizing: border-box; /* Đảm bảo tính toán kích thước không bị sai */
}
#app {
  overflow: auto;
  flex: 1;

  background-size: cover;
  background-attachment: fixed;
}

/*header*/
header {
  padding: 0 15px;

  height: 7vh;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f8fafc;
}
.header {
  width: 100%;
  height: 60px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.my-infor {
  margin: 10px;
  padding: 16px 10px 11px 20px;
  column-gap: 10px;
  position: relative;
  border-bottom: 0.1px solid #919191;
  user-select: none;
}
.my-infor_user{
  align-items: center;
  display: flex;
}
.currentUser-name {
  margin-left: 10px;
  color: #fff;
  font-size: 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
}
.my-infor .my-infor__name {
  color: #efefefef;
  font-size: 13px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
}
.my-infor__image img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  object-fit: cover;
}
.my-infor__image button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.my-infor__option {
  position: absolute; /* Đưa menu ra khỏi luồng layout thông thường */
  bottom: calc(100% + -5px); /* Đặt menu ngay phía dưới thẻ cha */
  left: 0;
  right: 0;
  z-index: 10;
  background-color: #f8fafc;
  border-radius: 8px;
  /* border: 1px solid #e2e8f0; */
  display: none;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}
.my-infor__option .ul {
  padding: 0;
  margin: 0;
}

.my-infor__option .ul li {
  color: #fff;
  list-style-type: none;
  padding-left: 16px;
  padding-right: 16px;
}
.my-infor__option .ul li {
  height: 30px;
  list-style-type: none;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  line-height: 30px;
  font-weight: 400;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  color: #334155;
  transition: background-color 0.2s;
  cursor: pointer;
}
.my-infor__option .ul li .logout {
  padding: 0 10px;
  font-weight: 500;
}
.ul li:nth-child(1) {
  /* Styles for the first list item */
  gap: 1 1;
}

.ul li:nth-child(1):hover {
  background-color: #e2e8f0;
}
.ul li:nth-child(2) {
  /* Styles for the second list item (time) */
  font-weight: 400;
}
.ul li:nth-child(2):hover {
  /* Styles for the second list item (time) */
  background-color: #e2e8f0;
}

/*main*/
.containerDiv {
  background-repeat: no-repeat; /* Không lặp lại */
  background-size: cover; /* Ảnh phủ kín vùng chứa mà không bị méo */
  background-position: center center; /* Căn giữa ảnh theo chiều ngang và dọc */
  background-attachment: fixed; /* Giữ cố định ảnh khi cuộn trang */
}
.container {
  width: 100%;
}
.main {
  padding: 20px;

  margin: auto;


}

.grid-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 10px;
  column-gap: 5px;
}
.item-bg {
  height: 150px;
  width: 245px;
  text-align: center;
}
.grid-items .item {
  margin: 0 auto;
}
.item-hover {
  position: relative;
  width: 150px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 25px;
  transition: 0.5s;
  max-width: 200px;
  height: 150px;
  margin: auto;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  border-radius: 10px;
  cursor: pointer;
}
.container_list {
  margin-bottom: 50px;
}
.box_title {
  background-color: rgb(9, 176, 59);
  color: #fff;
  display: "block";
  border-radius: 5px;
}
.container_list_LGSB{
  margin-bottom: 50px;
}
.title_container_list , .title_container_list_LGSB {
  font-size: 20px;
  padding: 0 0 10px 20px;
  /* border-bottom: 2px solid #8a858557; */
}
.grid_item_link {
  text-decoration: none;
  display: block;
  margin: 10px 15px;
  width: 17%;
}
/* footer */
/* .container_footer {
  margin: 5px ;
  border: 1px solid;
  padding: 10px;
  height: 16vh;
}
.container_footer p {
  margin: 10px 0;
  font-size: 16px;
} */
.box_title_text {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #fff;
  padding: 16px 0;
  min-height: 70px;
  max-height: 70px;
  text-align: center;
  font-size: 20px;
  line-height:25px;
}


.tabs {

  position: relative;
}

.tab-item {
  margin: 10px 5px;
  min-width: 80px;
  padding: 16px 20px 11px 20px;
  font-size: 16px;
  color: #fff;
  border-radius: 3px;

  cursor: pointer;
  transition: all 0.5s ease;
}
.tab-icon {
  font-size: 24px;
  width: 32px;
  position: relative;
  top: 2px;
}
.tab-item:hover {
  background-color: rgba(255, 255, 255, 0.3);
  
}
.tab-item.active {
  background-color: rgba(255, 255, 255, 0.3);
 
}

/* .tab-content {
  overflow: auto;
  height: 75vh;
  background-color: rgb(188, 215, 245);
  border: 1px solid;
    margin: 5px;
  padding: 28px 0;
} */
.tab-pane {
  color: #333;
  display: none;
}
.tab-pane.active {
  display: block;
}
.container div p{
  font-size: 20px;
  
}

.opacity{
  position: absolute; height: 100%;width: 100%;z-index: 0;background-color: black;opacity: 0.3;
}
@keyframes lentren {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-5px);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.item-hover:hover {
  /* opacity: 0.8; */
  cursor: pointer;
  background: linear-gradient(
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2)
  );
  animation: lentren 1s forwards;
}

.grid-items .item img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  object-fit: cover;
  text-align: center;
  overflow: hidden;
}

.grid-items .item .item__name {
  /* font-size: 14.4px; */
  color: #efefefef;
  font-weight: bold;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  font-style: normal;
}

/*Thong bao*/
.countAvt {
  position: absolute;
  color: #fff;
  top: -5px;
  right: 4px;
  height: 27px;
  width: 27px;
  background: red;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.countAvtNull {
  visibility: hidden;
}

/*css scrollbar*/
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
@media screen and (max-width: 1420px){
  .my-infor__option{
    padding-bottom:25px
  }
}

@media screen and (min-width: 500px) and (max-width: 961px) {
  .my-infor__option{
    padding-bottom:25px
  }
  body {
    overflow: auto;
  }
  .main {
    width: 100%;

    /* background-color: rgb(77, 86, 95); */
    /* height: 800px; */
  }
  .container {
    width: 100%;
    margin: 0 auto;
  }
  .grid-items {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .grid-items .item {
    margin: 0 auto;
  }

  .grid-items .item img {
    height: 90px;
    width: 90px;
  }

  /*Thong bao*/
  .countAvt {
    height: 24px;
    width: 24px;
  }
  .grid_item_link {
    text-decoration: none;
    display: block;
    margin: 10px 15px;
    width: 43%;
  }
}

@media screen and (max-width: 499px) {
  .grid_item_link {
    text-decoration: none;
    display: block;
    margin: 10px 15px;
    width: 90%;
  }
}

/* --- Search Bar Styles --- */
.search-container {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 13px 15px;
  background-color: #F8FAFC;
  width: 600px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s;
}

.search-container:hover,
.search-container:focus-within {
  border-color: #3b82f6; /* Hiệu ứng viền xanh khi hover/focus */
}

.search-icon {
  color: #64748b;
  margin-right: 12px;
  font-size: 16px;
}

.search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
}

.search-shortcut {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  margin-left: 8px;
}

.search-shortcut span:first-child {
  font-size: 12px;
}

.search-shortcut span:last-child {
  font-size: 11px;
  font-weight: 600;
}
/* --- Dashboard Container --- */
.dashboard-container {
    padding: 30px;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
}

.welcome-text {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.sub-text {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}

/* --- Stats Cards (4 thẻ trên cùng) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.stat-card.blue { background-color: #f0f7ff; }
.stat-card.green { background-color: #f0fdf4; }
.stat-card.purple { background-color: #f5f3ff; }
.stat-card.yellow { background-color: #fffbeb; }

.stat-icon {
    font-size: 20px;
    margin-bottom: 15px;
    color: #64748b;
}

.stat-card.blue .stat-icon { color: #3b82f6; }
.stat-card.green .stat-icon { color: #10b981; }
.stat-card.purple .stat-icon { color: #8b5cf6; }
.stat-card.yellow .stat-icon { color: #f59e0b; }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-title {
    /* background: #2563eb; */
    font-weight: bold; 
    font-size: 17px;
    color: #1E293B;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.btn-filter {
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filter.active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.green { background: #10b981; }
.dot.orange { background: #f59e0b; }

/* --- App Cards Grid --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.app-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* Icon Colors */
.app-icon.blue { background: #3b82f6; }
.app-icon.dark-blue { background: #1e40af; }
.app-icon.navy { background: #1e293b; }

/* Màu sắc nổi bật cho các icon ứng dụng */
.app-icon.sso { background: linear-gradient(135deg, #ff416c, #ff4b2b); box-shadow: 0 4px 10px rgba(255, 75, 43, 0.3); } /* LifeSSO: Đỏ cam rực rỡ */
.app-icon.esb { background: #3b82f6; } /* LifeESB: Xanh dương */
.app-icon.lgsp { background: #8b5cf6; } /* LifeLGSP: Tím */
.app-icon.driver { background: #10b981; } /* LifeDriver: Xanh lá */
.app-icon.scp { background: #0ea5e9; } /* LifeSCP: Xanh da trời */
.app-icon.gis { background: #f59e0b; } /* LifeGIS: Vàng cam */
.app-icon.vbdh { background: #6366f1; } /* Văn bản điều hành: Chàm */

.pin-icon {
    color: #f59e0b;
    font-size: 16px;
    cursor: pointer;
}

.app-info h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.role {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 40px;
}

.app-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.tag {
    background: #eff6ff;
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status {
    font-size: 12px;
    font-weight: 600;
}

.status.online { color: #10b981; }
.status.offline { color: #f59e0b; }

.users-count {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
}

/* Hover Overlay Button */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}
.app-card:hover .hover-overlay {
  opacity: 1;
}
.btn-open-app {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transform: translateY(10px);
  transition: transform 0.3s ease, background-color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-top: 150px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-card:hover .btn-open-app {
  transform: translateY(0);
}
.btn-open-app:hover {
  background-color: #1d4ed8;
}

/* --- RESPONSIVE STYLES --- */

/* Sidebar Container Base Style (Desktop) */
.sidebar-container {
  width: 305px; /* Fixed width instead of percentage */
  min-width: 260px;
  position: relative;
  background-color: #fff;
  border-right: 1px solid #f0f0f0;
  height: 100vh;
  transition: transform 0.5s ease;
  z-index: 1002;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Menu Toggle Button (Hidden on Desktop) */
.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  margin-right: 15px;
}

/* Sidebar Overlay (Hidden by default) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  backdrop-filter: blur(3px);
}

/* App Item Link Class (Replaces inline style width) */
.app-item-link {
  text-decoration: none;
  color: inherit;
  width: calc((100% - 32px) / 3); /* Default 3 columns */
  display: flex;
}

/* --- TABLET & SMALL LAPTOP (Max width 1024px) --- */
@media screen and (max-width: 1024px) {
  .app-item-link {
    width: calc((100% - 16px) / 2); /* 2 columns */
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns stats */
  }
}

/* --- MOBILE (Max width 768px) --- */
@media screen and (max-width: 768px) {
  /* Layout */
  .main-layout {
    position: relative;
    overflow-x: hidden;
  }

  /* Sidebar as Drawer */
  .sidebar-container {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%); /* Hide sidebar */
  }

  .sidebar-container.open {
    transform: translateX(0); /* Show sidebar */
  }

  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* Header */
  .menu-toggle-btn {
    display: block; /* Show hamburger */
  }
  
  header {
    display: flex;
    align-items: center;
  }

  .header {
    width: 100%;
  }

  .search-container {
    width: 100% !important; /* Full width search */
  }

  /* Content */
  .dashboard-container {
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr; /* 1 column stats */
    gap: 10px;
  }

  .app-item-link {
    width: 100%; /* 1 column apps */
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .filter-buttons {
    width: 100%;
    overflow-x: auto; /* Scroll if buttons too wide */
  }
}

/* --- MODAL STYLES --- */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.5); 
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; 
  border: 1px solid #888;
  width: 500px; 
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 { font-size: 18px; font-weight: 600; color: #1e293b; margin: 0; }
.close-modal { color: #94a3b8; font-size: 24px; font-weight: bold; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: #ef4444; }

.modal-body { padding: 24px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: #334155; font-size: 14px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; font-size: 14px; transition: border-color 0.2s; }
.form-input:focus { border-color: #3b82f6; }

.form-helper-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}
.form-helper-text a {
  color: #3b82f6;
  text-decoration: none;
}
.form-helper-text a:hover { text-decoration: underline; }

.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; cursor: pointer; }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.checkbox-row input[type="checkbox"] { margin-top: 4px; width: 16px; height: 16px; cursor: pointer; }
.checkbox-label-bold { font-weight: 500; color: #1e293b; font-size: 14px; cursor: pointer; }
.sub-text-label { font-size: 13px; color: #64748b; margin-top: 2px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: #f8fafc;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.btn-cancel {
  background: #fff; border: 1px solid #cbd5e1; padding: 8px 16px; border-radius: 6px; 
  cursor: pointer; font-weight: 500; color: #475569; transition: all 0.2s;
}
.btn-cancel:hover { background: #f1f5f9; }

.btn-save {
  background: #2563eb; color: white; border: none; padding: 8px 16px; border-radius: 6px; 
  cursor: pointer; font-weight: 500; transition: background 0.2s;
}
.btn-save:hover { background: #1d4ed8; }

/* --- SNACKBAR / TOAST NOTIFICATION --- */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 3000;
  right: 30px;
  top: 30px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#snackbar.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar.success { background-color: #10b981; } /* Green */
#snackbar.error { background-color: #ef4444; }   /* Red */
#snackbar.warning { background-color: #f59e0b; } /* Orange */

@keyframes fadein {
  from {top: 0; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: 0; opacity: 0;}
}

/* --- Custom Pinned Section Title Icon Color --- */
.pinned-section .category-title .fa-thumbtack {
  color: #64748b; /* Gray color for pin icon */
}

/* --- Custom Category Title Icon Color --- */
.category-title .fa-border-all {
  color: #64748b; /* Gray color for 'All Apps' icon */
}

/* --- Pinned Apps Section: 4 items per row --- */
.grid-items_Pinned {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.grid-items_Pinned .app-item-link {
  width: calc((100% - 48px) / 4);
}

@media screen and (max-width: 1024px) {
  .grid-items_Pinned .app-item-link {
    width: calc((100% - 16px) / 2);
  }
}

@media screen and (max-width: 768px) {
  .grid-items_Pinned .app-item-link {
    width: 100%;
  }
}