:root {
  --primary: #0d47a1;
  --primary-dark: #08306b;
  --secondary: #f5f7fb;
  --text: #333;
  --table-bg: #fff;
}

body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--secondary);
  color: var(--text);
}

header {
  background: var(--primary);
  color: white;
  padding: 25px 15px;
  text-align: center;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 1.9rem;
}

header p {
  margin: 6px 0 0;
  font-size: 1rem;
  opacity: 0.9;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #e0e0e0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn i { margin-right: 6px; }

.tab-btn.active {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.tab-btn:hover {
  background: var(--primary-dark);
  color: white;
}

/* Search */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto 25px;
  max-width: 400px;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #ccc;
}

.search-box i {
  color: #555;
  margin-right: 8px;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--table-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  animation: fadeIn 0.5s ease-in-out;
}

th, td {
  text-align: left;
  padding: 14px 12px;
  font-size: 0.95rem;
  vertical-align: top;
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #eef4ff;
  transition: 0.3s;
}

/* Links as buttons */
td a {
  display: inline-block;
  margin: 3px 4px;
  padding: 6px 10px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: 0.3s;
}

td a i { margin-right: 5px; }

td a:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  th, td { font-size: 0.85rem; padding: 10px; }
  header h1 { font-size: 1.5rem; }
}

@media (max-width: 500px) {
  .tabs { flex-direction: column; }
  td a { display: block; margin: 4px 0; }
}
