* { 
  box-sizing: border-box; 
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; 
}

body { 
  margin: 0; 
  padding: 20px; 
  background: #f4f7f9; 
  color: #1e293b; 
}

h1 { margin-top: 0; color: #00628b; font-size: 24px; }

.container { max-width: 1200px; margin: 0 auto; }

/* Cards */
.card { 
  background: #ffffff; 
  padding: 20px; 
  border-radius: 10px; 
  box-shadow: 0 2px 10px rgba(0, 98, 139, 0.08); 
  margin-bottom: 20px; 
  border-top: 4px solid #00628b;
}

/* Form inputs */
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; 
  padding: 10px 12px; 
  border: 1px solid #cbd5e1; 
  border-radius: 6px; 
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, select:focus {
  outline: none;
  border-color: #00628b;
  box-shadow: 0 0 0 3px rgba(0, 98, 139, 0.15);
}

label { 
  display: block; 
  margin: 12px 0 4px; 
  font-weight: 600; 
  font-size: 13px; 
  color: #00628b; 
}

/* Buttons */
.btn {
  display: inline-block; 
  padding: 9px 16px; 
  border-radius: 6px; 
  border: none;
  cursor: pointer; 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  color: #fff;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: #00628b; color: #fff; }
.btn-primary:hover { background: #004d6e; }

.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-secondary { background: #e0edf2; color: #00628b; }
.btn-secondary:hover { background: #c7dde6; }

/* Table */
table { 
  width: 100%; 
  border-collapse: collapse; 
  background: #fff; 
  border-radius: 8px;
  overflow: hidden;
}

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

th { 
  background: #00628b; 
  color: #ffffff; 
  font-weight: 700; 
  text-transform: uppercase; 
  font-size: 11px;
  letter-spacing: 0.5px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f4f7f9; }

/* Grid for forms */
.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 16px; 
}

/* Search bar */
.searchbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.searchbar input { flex: 1; min-width: 200px; }

/* Messages */
.msg { 
  padding: 12px 16px; 
  border-radius: 6px; 
  margin-bottom: 16px; 
  font-size: 14px; 
}

.msg.success { 
  background: #dcfce7; 
  color: #166534; 
  border-left: 4px solid #22c55e; 
}

.msg.error { 
  background: #fee2e2; 
  color: #991b1b; 
  border-left: 4px solid #ef4444; 
}

/* Pagination */
.pagination { 
  margin-top: 16px; 
  display: flex; 
  gap: 6px; 
  flex-wrap: wrap; 
  align-items: center;
}

.pagination a, .pagination span {
  padding: 8px 12px; 
  border-radius: 5px; 
  border: 1px solid #cbd5e1; 
  background: #fff;
  text-decoration: none; 
  color: #00628b; 
  font-size: 13px;
  transition: all 0.2s;
}

.pagination a:hover { background: #e0edf2; border-color: #00628b; }

.pagination .active { 
  background: #00628b; 
  color: #fff; 
  border-color: #00628b; 
}

.actions a { margin-right: 4px; }

/* Profile (view.php) */
.profile-header {
  background: linear-gradient(135deg, #00628b 0%, #0089bd 100%);
  color: #fff; padding: 25px; border-radius: 10px 10px 0 0;
  display: flex; align-items: center; gap: 20px;
}
.avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex;
  align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.profile-header h2 { margin: 0 0 4px; font-size: 22px; }
.profile-header p { margin: 0; opacity: .9; font-size: 13px; }

.section-title {
  background: #00628b; color: #fff;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: 6px; margin: 24px 0 12px;
}

table.detail { width: 100%; border-collapse: collapse; }
table.detail th, table.detail td { padding: 11px 14px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
table.detail th { background: #f4f7f9; color: #00628b; text-transform: none; font-size: 13px; }
table.detail tr:last-child th, table.detail tr:last-child td { border-bottom: none; }

/* Isibo grid (by_isibo.php) */
.isibo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.isibo-card {
  background: #fff; border-radius: 10px; padding: 16px;
  border-left: 5px solid #00628b;
  box-shadow: 0 2px 8px rgba(0, 98, 139, 0.08);
  text-decoration: none; color: #1e293b;
  transition: all .2s; display: block;
}
.isibo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 98, 139, 0.18);
  border-left-color: #f59e0b;
}
.isibo-card.active {
  background: #00628b; color: #fff; border-left-color: #f59e0b;
}
.isibo-card.active .isibo-count { color: #fff; }
.isibo-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.isibo-count { font-size: 22px; font-weight: 800; color: #00628b; }
.isibo-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }

/* Responsive */
@media (max-width: 768px) {
  .searchbar { flex-direction: column; align-items: stretch; }
  .grid { grid-template-columns: 1fr; }
  th, td { font-size: 12px; padding: 8px 6px; }
}