@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #e9f8f4;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background-color: #1e8c72;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 76px;
  left: 0;
  width: 240px;
  height: calc(100% - 76px);
  background-color: #57cba7;
  color: white;
  padding: 25px 20px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: #b2f2dc;
  color: #1e8c72;
  font-weight: 600;
  transform: scale(1.05);
}

/* ===== MAIN CONTENT ===== */
main {
  margin-left: 260px;
  padding: 100px 40px 40px;
  min-height: 100vh;
}

.content {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.content h2 {
  text-align: center;
  color: #2e7267;
  margin-bottom: 25px;
  font-weight: 600;
}

/* ===== TOP BAR (SEARCH + COUNT) ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #f0fbf8;
  border: 1px solid #b5e3da;
  border-radius: 25px;
  padding: 8px 15px;
  width: 50%;
}

.search-box ion-icon {
  color: #3f8d82;
  font-size: 18px;
  margin-right: 8px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
}

.total {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #2e7267;
}

.total .count {
  background: #e9f8f4;
  border: 1px solid #a4dcd2;
  padding: 5px 15px;
  border-radius: 8px;
  font-weight: 600;
}

/* ===== TABLE ===== */
.table-container {
  border: 2px solid #3f8d82;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid #e0efeb;
}

th {
  background-color: #c5f4e5;
  color: #2e7267;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9fdfc;
}

.view-btn {
  background-color: #5eb5a9;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background-color: #3f8d82;
}

/* ===== FLOATING PANEL ===== */
.floating-panel {
  position: fixed;
  top: 76px;
  right: -420px;
  width: 380px;
  height: calc(100vh - 76px);
  background-color: white;
  box-shadow: -4px 0 10px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.floating-panel.show {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e8c72;
  color: white;
  padding: 14px;
}

.panel-header button {
  background: none;
  border: none;
  font-size: 18px;
  color: white;
  cursor: pointer;
}

.panel-content {
  padding: 15px;
}

.panel-content p {
  margin: 6px 0;
}

/* ===== SCROLLBAR ===== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #2f756a;
  border-radius: 3px;
}
