/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  line-height: 1.5;
  color: #202124;
  background: #f8f9fa;
  min-height: 100vh;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #174ea6;
}

a:active {
  color: #0d47a1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #ffffff;
  color: #202124;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
}

.site-header.scrolled {
  box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3),
    0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  min-height: 64px;
}

.site-header h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 500;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: 0;
}

.site-header h1 a {
  color: #5f6368;
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header h1 a:hover {
  color: #202124;
}

.site-logo {
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.2s ease;
}

.site-header h1 a:hover .site-logo {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  color: #5f6368;
  text-decoration: none;
  padding: 8px 16px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 14px;
  border-radius: 24px;
  position: relative;
}

.main-nav a:hover {
  background-color: rgba(26, 115, 232, 0.08);
  color: #1a73e8;
}

.main-nav a.active {
  background-color: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
}

.main-nav a:active {
  background-color: rgba(26, 115, 232, 0.16);
}

/* Footer */
.site-footer {
  background: #f8f9fa;
  color: #5f6368;
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid #dadce0;
  font-size: 12px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 0 24px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.page-header h2 {
  font-size: 36px;
  color: #202124;
  font-weight: 400;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: -0.5px;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 64px 48px;
  border-radius: 16px;
  margin: 32px 0;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
}

.welcome-section h2 {
  color: #202124;
  margin-bottom: 16px;
  font-size: 48px;
  font-weight: 400;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.welcome-section p {
  color: #5f6368;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  max-width: 800px;
}

/* Database Sections */
.database-sections {
  margin: 48px 0;
}

.database-sections h3 {
  font-size: 32px;
  margin-bottom: 32px;
  color: #202124;
  font-weight: 400;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: -0.5px;
}

.database-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.database-table th,
.database-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #dadce0;
}

.database-table th {
  background: #f8f9fa;
  font-weight: 500;
  color: #202124;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.database-table tbody tr:hover {
  background: #f8f9fa;
}

.database-table tbody tr:last-child td {
  border-bottom: none;
}

.database-table .btn {
  margin: 2px 0;
  /* Force a consistent width for action buttons inside tables so labels like
     "View Articles" and "Subcategories" appear identical. These rules apply
     when the button is a flex item (the parent container is typically
     `display: flex`). On small screens the responsive override below relaxes
     the fixed width. */
  min-width: 160px;
  max-width: 160px;
  width: 160px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  /* When these anchors are children of a flex container they behave as flex
     items; ensure they don't shrink or grow so widths stay identical. */
  flex: 0 0 160px;
}

/* Quick Actions */
.quick-actions {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  margin-top: 48px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
}

.quick-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 12px 12px 0 0;
}

.quick-actions h3 {
  margin-bottom: 24px;
  color: #202124;
  font-size: 24px;
  font-weight: 500;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: 0;
}

.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  letter-spacing: 0.25px;
  text-transform: none;
  font-family: "Google Sans", "Roboto", sans-serif;
  min-height: 36px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: #1765cc;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3),
    0 4px 8px 3px rgba(60, 64, 67, 0.15);
  transform: translateY(-1px);
}

.btn:active {
  background: #174ea6;
  transform: translateY(0);
}

.btn-primary {
  background: #1a73e8;
}

.btn-primary:hover {
  background: #1765cc;
}

.btn-secondary {
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  box-shadow: none;
}

.btn-secondary::before {
  background: rgba(26, 115, 232, 0.1);
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-secondary:active {
  background: #e8f0fe;
}

.btn-small {
  padding: 6px 16px;
  font-size: 13px;
  margin-right: 8px;
  min-height: 32px;
  border-radius: 16px;
}

.btn-success {
  background: #1e8e3e;
}

.btn-success:hover {
  background: #188038;
}

.btn-success:active {
  background: #0d652d;
}

.btn-danger {
  background: #d93025;
}

.btn-danger:hover {
  background: #c5221f;
}

.btn-danger:active {
  background: #a50e0e;
}

/* Forms */
.filters-form {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
}

.filters-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 12px 12px 0 0;
}

.filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filters-row input,
.filters-row select {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #202124;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Roboto", sans-serif;
}

.filters-row input:hover,
.filters-row select:hover {
  border-color: #bdc1c6;
  background: #f8f9fa;
}

.filters-row input:focus,
.filters-row select:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  background: #ffffff;
}

.filters-row input::placeholder {
  color: #80868b;
}

.filters-row select option {
  background: #ffffff;
  color: #202124;
}

.results-info {
  color: #5f6368;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* Entry Forms */
.entry-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
}

.entry-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 12px 12px 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #202124;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  background: #ffffff;
  color: #202124;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #bdc1c6;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #80868b;
}

.form-group select option {
  background: #ffffff;
  color: #202124;
}

.form-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #f1f3f4;
}

/* Auth Forms */
.auth-container {
  max-width: 480px;
  margin: 64px auto;
  background: #ffffff;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 12px 12px 0 0;
}

.auth-container h2 {
  margin-bottom: 32px;
  color: #202124;
  font-size: 24px;
  font-weight: 400;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: 0;
  text-align: center;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  margin-top: 8px;
}

.auth-link {
  margin-top: 20px;
  text-align: center;
  color: #5f6368;
  font-size: 14px;
}

.auth-link a {
  color: #1a73e8;
  font-weight: 500;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.alert-error {
  background-color: #fce8e6;
  color: #d93025;
  border: 1px solid #f9dedc;
}

.alert-success {
  background-color: #e6f4ea;
  color: #1e8e3e;
  border: 1px solid #ceead6;
}

/* Tables */
.table-container {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  margin-bottom: 24px;
  border: 1px solid #dadce0;
  position: relative;
}

.table-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 8px 8px 0 0;
  z-index: 1;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead {
  background: #f8f9fa;
  border-bottom: 1px solid #dadce0;
}

.data-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 500;
  color: #5f6368;
  white-space: nowrap;
  letter-spacing: 0.1px;
  font-size: 12px;
  text-transform: uppercase;
}

.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f3f4;
  color: #202124;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.no-results {
  text-align: center;
  padding: 48px;
  color: #5f6368;
  font-size: 14px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-completed,
.badge-approved,
.badge-active {
  background: #e6f4ea;
  color: #1e8e3e;
  border: 1px solid #ceead6;
}

.badge-pending {
  background: #fef7e0;
  color: #e37400;
  border: 1px solid #feefc3;
}

.badge-rejected,
.badge-retired {
  background: #fce8e6;
  color: #d93025;
  border: 1px solid #f9dedc;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.page-info {
  color: #5f6368;
  font-size: 14px;
}

/* Admin Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  text-align: center;
  border: 1px solid #dadce0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 8px 8px 0 0;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3),
    0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.stat-card h3 {
  color: #5f6368;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-number {
  font-size: 48px;
  font-weight: 400;
  color: #1a73e8;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  font-family: "Google Sans", "Roboto", sans-serif;
}

.admin-menu {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: 1px solid #dadce0;
  position: relative;
  overflow: hidden;
}

.admin-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #1a73e8 0%,
    #00bcd4 25%,
    #9c27b0 50%,
    #ff6f00 75%,
    #1a73e8 100%
  );
  border-radius: 8px 8px 0 0;
}

.admin-menu h3 {
  margin-bottom: 16px;
  color: #202124;
  font-size: 18px;
  font-weight: 500;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: 0;
}

.admin-menu ul {
  list-style: none;
}

.admin-menu li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.admin-menu li:last-child {
  border-bottom: none;
}

.admin-menu a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
  font-size: 14px;
}

.admin-menu a:hover {
  color: #174ea6;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: auto;
  }

  .main-nav {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h2 {
    font-size: 24px;
  }

  .filters-row {
    flex-direction: column;
  }

  .filters-row input,
  .filters-row select {
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .database-table {
    overflow-x: auto;
    display: block;
  }

  .database-table th,
  .database-table td {
    white-space: nowrap;
    min-width: 120px;
  }

  /* Allow table action buttons to be responsive on small screens */
  .database-table .btn {
    min-width: 120px;
    max-width: none;
    width: auto;
    flex: 0 1 auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-section {
    padding: 32px 24px;
  }

  .welcome-section h2 {
    font-size: 28px;
  }

  .auth-container {
    margin: 24px auto;
    padding: 24px;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 8px;
  border: 3px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Selection */
::selection {
  background: rgba(26, 115, 232, 0.2);
  color: #202124;
}

::-moz-selection {
  background: rgba(26, 115, 232, 0.2);
  color: #202124;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    #f8f9fa 0%,
    #e8eaed 20%,
    #f8f9fa 40%,
    #f8f9fa 100%
  );
  background-size: 1000px 100%;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}

.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}

.p-1 {
  padding: 8px;
}
.p-2 {
  padding: 16px;
}
.p-3 {
  padding: 24px;
}
.p-4 {
  padding: 32px;
}

/* Elevation Helpers */
.elevation-1 {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.elevation-2 {
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3),
    0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.elevation-3 {
  box-shadow: 0 4px 8px 0 rgba(60, 64, 67, 0.3),
    0 6px 20px 4px rgba(60, 64, 67, 0.15);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Admin Table Management Styles */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
  background: #f8f9fa;
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: #5f6368;
  border-bottom: 1px solid #dadce0;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
}

.admin-table tbody tr:hover {
  background: #f8f9fa;
}

.btn-success {
  background: #34a853;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-success:hover {
  background: #2d8e47;
}

.btn-danger {
  background: #ea4335;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #d33828;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #1a73e8;
  margin: 12px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

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

.admin-menu {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-menu h3 {
  margin-bottom: 16px;
  color: #202124;
}

.admin-menu ul {
  list-style: none;
}

.admin-menu li {
  padding: 8px 0;
}

.admin-menu li hr {
  margin: 12px 0;
  border: none;
  border-top: 1px solid #dadce0;
}

.admin-menu a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s;
}

.admin-menu a:hover {
  color: #174ea6;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .main-nav {
    display: none;
  }

  body {
    background: white;
  }

  .database-table,
  .welcome-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
