﻿.btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  margin-right: 8px;
}
.btn-icon:hover { color: #0d6efd; }
.text-danger:hover { color: #dc3545; }
.text-success:hover { color: #198754; }
.text-secondary:hover { color: #6c757d; }
body {
  font-family: Arial, sans-serif;
  margin: 0;
}

/* Highlight hàng khi hover */
.table-hover tbody tr:hover {
    background-color: #ffeeba !important; /* màu vàng nhạt */
    cursor: pointer;
}


/* Ná»™i dung */
#content {
  padding: 20px;
  min-height: 100vh;
  background: #e7f1ff; /* xanh nháº¡t */
}
/* Nền gradient cho toàn bộ accordion */
#menuElection .accordion-item {
  background: linear-gradient(268deg, #229fdc, #539af1);
  color: #fff;
}

/* Nút accordion */
#menuElection .accordion-button {
  background: linear-gradient(90deg, #0d6efd, #24a4d9);
  color: #fff;
}

/* Khi accordion đang mở */
#menuElection .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #519af0, #0d8fc5);
  color: #ffff00;
  box-shadow: none; /* bỏ shadow mặc định */
  font-weight: bold;
}

/* Nội dung bên trong */
#menuElection .accordion-body {
  /* background: rgba(255,255,255,0.9); */ /* nền trong suốt nhẹ để phân biệt */
  color: #ffff00;
  background-color: #333;
}

/* Link bên trong */
#menuElection .nav-link {
  color: #f1f113;
}

#menuElection .nav-link:hover {
  color: #ffe082; /* vàng nhạt khi hover */
}

/* Bỏ border và nền trắng quanh accordion */
.accordion-item {
  border: none !important;
  background-color: transparent !important;
}

/* Bỏ nền trắng của nút accordion */
.accordion-button {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Khi accordion mở ra */
.accordion-button:not(.collapsed) {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Bỏ nền trắng phần body */
.accordion-body {
  background-color: transparent !important;
}
/* Bỏ border cho nút outline */
.btn-outline-danger {
  border: none !important;
  box-shadow: none !important;
}

/* Nếu muốn bỏ luôn nền khi hover */
.btn-outline-danger:hover {
  background-color: transparent !important;
  color: #dc3545 !important; /* giữ màu chữ đỏ */
}

/* ---------------------- */
/* Responsive cho mobile  */
/* ---------------------- */
@media (max-width: 768px) {
  /* Header nhá» hÆ¡n */
  header h1 {
    font-size: 20px;
  }
  header p {
    font-size: 14px;
  }

  /* Sidebar chuyá»ƒn thÃ nh ngang trÃªn mobile */
  #sidebar {
    min-height: auto;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
  }
  #sidebar a {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.2);
  }
  #sidebar a:last-child {
    border-right: none;
  }

  /* Ná»™i dung chiáº¿m toÃ n bá»™ chiá»u rá»™ng */
  #content {
    padding: 15px;
    min-height: auto;
  }

  /* Footer nhá» gá»n */
  footer {
    font-size: 14px;
    padding: 10px;
  }
}
/* Header & Footer */
header, footer {
  background: #084298;
  color: #fff;
  padding: 15px;
  text-align: center;
}

/* Sidebar máº·c Ä‘á»‹nh (desktop) */
#sidebar {
  width: 300px;          /* sidebar cá»‘ Ä‘á»‹nh bÃªn trÃ¡i */
  min-height: 100vh;
  background: #0d6efd;
  color: #fff;
  float: left;
  display: block;        /* luÃ´n hiá»‡n trÃªn desktop */
}

#sidebar a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  text-align: left;
}

#sidebar a:hover {
  background: #20c89970;
}



/* Mobile: sidebar overlay */
@media (max-width: 768px) {
  #sidebar {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0d6efd;
    min-height: auto;
    z-index: 1000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    display: none;        /* áº©n máº·c Ä‘á»‹nh trÃªn mobile */
    float: none;          /* bá» float */
  }

  #sidebar.show {
    display: block;       /* hiá»‡n khi báº¥m nÃºt Menu */
  }

  #content {
    margin-left: 0;       /* ná»™i dung full width trÃªn mobile */
    padding: 15px;
  }

  #sidebar a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
}}
/* Logo trong header */
.logo {
  width: 120px;
  height: auto;
}
/* Overlay máº·c Ä‘á»‹nh áº©n */
#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); /* lá»›p má» */
  z-index: 999; /* náº±m dÆ°á»›i menu */
}

/* Khi menu hiá»‡n thÃ¬ overlay hiá»‡n */
#sidebar.show ~ #overlay {
  display: block;
}

/* Báº£ng tá»•ng há»£p phÃ²ng ban */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
}

/* Header */
.table thead th {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border: 1px solid #dee2e6;
}

/* DÃ²ng dá»¯ liá»‡u */
.table tbody td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

/* Hover row */
.table-hover tbody tr:hover {
    background-color: #ffeeba !important; /* màu vàng nhạt */
    transition: background-color 0.2s ease-in-out;
}

/* Cá»™t TT */
.table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: #007bff;
}

/* NÃºt "Chi tiáº¿t" */
.table .btn {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.table .btn:hover {
    transform: scale(1.05);
}

/* NÃºt chi tiáº¿t riÃªng */
.table .btn-info {
    background-color: #17a2b8;
    border: none;
    color: #fff;
}
.table .btn-info:hover {
    background-color: #ffeeba !important; /* màu vàng nhạt */
}
.table tbody tr:nth-child(even) {
    background-color: #ffeeba !important; /* màu vàng nhạt */
}

.table tbody td:nth-child(3) { /* ChÆ°a lÃ m */
    color: #dc3545;
    font-weight: 600;
}
.table tbody td:nth-child(4) { /* Äang lÃ m */
    color: #ffc107;
    font-weight: 600;
}
.table tbody td:nth-child(5) { /* HoÃ n thÃ nh */
    color: #28a745;
    font-weight: 600;
}
/* Bá»c GridView trong container cÃ³ scroll */
.table-container {
    max-height: 500px;   /* chiá»u cao tá»‘i Ä‘a, tÃ¹y chá»‰nh */
    overflow-y: auto;    /* báº­t scroll dá»c */
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Header sticky */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border: 1px solid #dee2e6;
}
/* Chá»‰ Ã¡p dá»¥ng cho GridView phÃ²ng ban */
.grid-phongban thead th {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 10px;
}

.grid-phongban tbody td {
    padding: 8px 12px;
    vertical-align: middle;
}

/* Hover row */
.grid-phongban tbody tr:hover {
    background-color: #f1f5ff;
    transition: background-color 0.2s ease-in-out;
}

/* Cá»™t TT */
.grid-phongban tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: #007bff;
}
.notice-bar {
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(90deg, #0d6efd, #20c997); /* xanh lam -> xanh lÃ¡ */
    color: #fff;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.notice-bar span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.w-33 { width: 40%; }
.w-67 { width: 60%; }

/* Header flex 2 cá»™t */
.header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  gap: 12px; /* trÃ¡nh dÃ­nh nhau */
}
@media (max-width: 768px) {
  .marquee {
    font-size: 13px;
    padding: 4px 8px;
  }

  #bellIcon {
    font-size: 20px;
  }

  .badge {
    font-size: 10px;
    padding: 2px 4px;
  }

  h5, h6 {
    font-size: 12px;
  }

  img.logo {
    width: 60px;
  }
}

/* TrÃ¡i 1/3 */
.left-col {
  width: 33%;
  display: flex;
  align-items: center;
}
.logo { width: 100px; }
.title-block { margin-left: 12px; }
.sub-title { margin: 0 0 4px 0; font-size: 14px; font-weight: 600; }
.main-title { margin: 0; font-size: 18px; font-weight: 700; }

/* Pháº£i 2/3, Ã©p ná»™i dung sÃ¡t pháº£i */
.right-col {
  width: 67%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Bá»c ná»™i dung thÃ´ng bÃ¡o pháº£i lÃ  flex, cÃ³ khoáº£ng cÃ¡ch */
.notif-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ChuÃ´ng + badge */
.bell-wrap {
  position: relative;
  display: inline-block;
  margin-right: 6px;
}
.bi.bi-bell-fill { 
  color: #f5c542;        /* vÃ ng */
  font-size: 26px; 
}

/* Badge trÃ²n Ä‘á» */
.badge1 {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 5px;
  border-radius: 50%;
}

.marquee {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}


/* Hiá»‡u á»©ng chuÃ´ng rung */
.bell-ring { animation: ring 1s ease-in-out; }
@keyframes ring {
  0% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}

.container-fluid {
  width: 100%;
  padding: 0;
  margin: 0;
}

.row {
  display: flex;
  flex-wrap: nowrap;
}

#sidebar {
 
  min-height: 100vh;
  background: linear-gradient(90deg, #0d6efd, #24a4d9);
  padding: 16px;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.1);
}

#content {
  flex: 1;
  padding: 24px;
  background: #fff;
}

/* Toggle button */
/* Nút bật/tắt chatbot */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 80px;
  width: 50px;
  height: 50px;
  background: url("../images/logo.png") no-repeat center center;
  background-size: cover;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
#chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Khung chat */
#chatbot-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

/* Vùng tin nhắn */
#chatbot-messages {
  max-height: 360px;
  overflow-y: auto;
  padding: 5px;
}

/* Bong bóng chat người dùng */
.user-msg {
  background: #0078ff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 15px 15px 0 15px;
  margin: 5px 0;
  display: inline-block;
  max-width: 80%;
  float: right;          /* đẩy bong bóng sang phải */
  clear: both;           /* tránh dính với bong bóng trước */
  text-align: left;      /* chữ bên trong vẫn căn trái cho dễ đọc */
}

/* Bong bóng chat bot */
.bot-msg {
  background: #f1f1f1;
  color: #333;
  padding: 8px 12px;
  border-radius: 15px 15px 15px 0;
  margin: 5px 0;
  display: inline-block;
  max-width: 80%;
  float: left;           /* đẩy bong bóng sang trái */
  clear: both;
  text-align: left;
}


/* Avatar bot */
.bot-msg::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../images/logo.png") no-repeat center center;
  background-size: contain;   /* hoặc cover */
  margin-right: 5px;
  vertical-align: middle;
}



/* Header */
#chatbot-box::before {
  content: "Trợ lý phần mềm";
  display: block;
  background: #0e75f5;  /* đỏ đậm */
  color: #fff9e6;       /* chữ vàng nhạt */
  padding: 10px;
  font-weight: bold;
  text-align: center;
}



/* Input + button */
#chatbot-input {
  width: 100%;
  border: 1px solid #007bff;
  padding: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  border-radius: 6px;
  margin: 8px;
}

#chatbot-send {
  width: calc(100% - 16px);
  margin: 0 8px 8px 8px;
  background: #0e74f6;   /* đỏ đậm */
  color: #fff9e6;        /* vàng nhạt */
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}
#chatbot-send:hover {
  background: #1fc798;   /* đỏ sáng hơn khi hover */
}
#backtotop {
  position: fixed;
  bottom: 22px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: #0e74f6; /* đỏ */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 999999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#backtotop:hover {
  background: #b02a37; /* đỏ đậm khi hover */
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(220,53,69,0.8); /* phát sáng đỏ */
}
@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}
#backtotop.show {
  animation: bounceIn 0.5s;
}