* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  transition: background 0.4s ease;
}

.container {
  width: 100%;
  max-width: 680px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.header h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.ig-link {
  color: #fff;
  font-size: 26px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.ig-link:hover {
  transform: scale(1.2) rotate(5deg);
  color: #ff4ecd;
}

.top-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

#searchInput {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}

#darkModeBtn {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

th, td {
  padding: 15px 18px;
  text-align: left;
  font-size: 15px;
}

th {
  background: #f1f5f9;
}

tr {
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

tr:hover {
  background: #e0f2fe;
  transform: translateX(8px);
}

tr:not(:last-child) td {
  border-bottom: 1px solid #e5e7eb;
}

.icon {
  margin-right: 12px;
  font-size: 18px;
}

/* DARK MODE */
body.dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.dark table {
  background: #1e293b;
  color: #f8fafc;
}

body.dark th {
  background: #334155;
}

body.dark tr:not(:last-child) td {
  border-bottom: 1px solid #475569;
}

body.dark tr:hover {
  background: #334155;
}
