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

* {
  font-family: Inter, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.layout {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #020617, #0f172a);
  color: white;
  padding: 25px;
}

.sidebar h2 {
  margin-bottom: 30px;
}

.nav-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-btn i {
  margin-right: 10px;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.18);
}

.nav-btn.danger:hover {
  background: rgba(239,68,68,0.7);
}

/* CONTENT */
.content {
  flex: 1;
  padding: 40px;
}

.subtitle {
  color: #64748b;
}

/* CARDS */
.cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.15);
}

.card-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.card-title {
  font-weight: 600;
}

/* COLOR THEMES */
.blue   { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.green  { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.purple { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.teal   { background: linear-gradient(135deg, #ccfbf1, #f0fdfa); }
.orange { background: linear-gradient(135deg, #ffedd5, #fff7ed); }
.indigo { background: linear-gradient(135deg, #e0e7ff, #eef2ff); }
.cyan   { background: linear-gradient(135deg, #cffafe, #ecfeff); }
.pink   { background: linear-gradient(135deg, #fce7f3, #fdf2f8); }

.module-content {
  margin-top: 40px;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.module {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

.module-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0e7ff, #eef2ff);
  cursor: pointer;
}

/* USER HEADER */
.welcome-text h2 {
  margin: 0;
  font-size: 1.4rem;
}

.welcome-text .subtitle {
  margin: 0;
  color: #666;
}

/* USER HEADER */
.user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

/* LOCKED GOOGLE AVATAR */
.user-header img.avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #e5e7eb;
  border: 3px solid #4f46e5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* =========================
   LOGIN PAGE (ISOLATED)
   ========================= */

body.login-page {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

/* Full-screen centering wrapper */
.login-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login card */
.login-card {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 48px 44px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

/* Icon circle */
.login-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 34px;
  box-shadow: 0 12px 30px rgba(79,70,229,0.4);
}

/* Title */
.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

/* Subtitle */
.login-subtitle {
  margin: 0 0 32px;
  color: #64748b;
  font-size: 0.95rem;
}

/* Google button */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  color: #111827;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-login-btn img {
  width: 20px;
  height: 20px;
}

.google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* Footer */
.login-footer {
  margin-top: 32px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.search-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  width: 260px;
}

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

.data-table th {
  text-align: left;
  padding: 12px;
  background: #f1f5f9;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.badge.active {
  background: #dcfce7;
  color: #166534;
}

.badge.disabled {
  background: #fee2e2;
  color: #991b1b;
}

.btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #4f46e5;
  color: white;
}

.table-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.data-table th,
.data-table td {
  padding: 14px;
}

.data-table th {
  background: #f8fafc;
}

.data-table tr:hover {
  background: #f1f5f9;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

