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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #1e1e2f, #2c2c3f);
  color: #fff;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  color: #ff6ec7;
  text-align: center;
  font-weight: 700;
  margin-bottom: 2rem;
}

h3 {
  color: #ff6ec7;
  margin-top: 2rem;
  font-weight: 600;
}

.g_id_signin, #showFormButton, #logoutButton {
  display: block;
  margin: 1rem auto;
}

#showFormButton, #logoutButton, .tab-button, button[type="submit"], button {
  background-color: #ff6ec7;
  color: #1e1e2f;
  border: none;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#showFormButton:hover, #logoutButton:hover, .tab-button:hover, button[type="submit"]:hover, button:hover {
  background-color: #ff4eb3;
}

form {
  display: none;
  margin-top: 2rem;
  background-color: #2f2f4f;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

input, textarea, select {
  width: 100%;
  padding: 0.7rem;
  margin: 0.6rem 0;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  background-color: #1e1e2f;
  color: #fff;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: #2f2f4f;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
li:hover {
  transform: translateY(-4px);
}

img {
  max-width: 100%;
  margin-top: 0.5rem;
  border-radius: 8px;
}

a {
  color: #9be7ff;
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
}

.tags {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

th, td {
  padding: 0.6rem;
  border-bottom: 1px solid #444;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #2c2c3f;
  color: #ff6ec7;
}

.admin-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #2f2f4f;
  padding: 1rem;
  border-radius: 10px;
  min-width: 160px;
}

.tab-button {
  background-color: #ff6ec7;
  color: #1e1e2f;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.admin-content {
  flex: 1;
}

.tab-button.active {
  background-color: #fff;
  color: #1e1e2f;
  font-weight: 700;
  box-shadow: 0 0 5px #ff6ec7;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  background-color: #1e1e2f;
  color: #fff;
  font-size: 1rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  background-color: #1e1e2f;
  color: #fff;
  font-size: 1rem;
}

table.loading {
  opacity: 0.5;
  pointer-events: none;
}

.loading-indicator {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}
