* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f0f4f8;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 2px solid #00c896;
  background: transparent;
  color: #00c896;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.btn:hover {
  background: #00c896;
  color: white;
}

.btn-primary {
  background: #00c896;
  color: white;
}

.btn-primary:hover {
  background: #00a876;
}

.btn-danger {
  border-color: #e74c3c;
  color: #e74c3c;
}

.btn-danger:hover {
  background: #e74c3c;
  color: white;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #1a1a2e;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #00c896;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.header-admin {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-admin h1 {
  font-size: 1.3rem;
}

.header-admin .user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-admin .user-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

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

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

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #00c896;
}

.stat-card h3 {
  font-size: 2rem;
  color: #00c896;
}

.stat-card p {
  color: #666;
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  color: #666;
}

.tab-btn.active {
  background: #00c896;
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #e0e0e0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.list-item .item-info h4 {
  margin-bottom: 0.2rem;
  color: #1a1a2e;
}

.list-item .item-info p {
  font-size: 0.85rem;
  color: #888;
}

.list-item .item-actions {
  display: flex;
  gap: 0.5rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 1.5rem;
  color: #1a1a2e;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.login-card h1 {
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: #666;
  margin-bottom: 2rem;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 2rem;
  background: white;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.google-btn:hover {
  border-color: #4285f4;
  box-shadow: 0 5px 15px rgba(66,133,244,0.2);
}

.preview-img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header-admin {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .tabs {
    justify-content: center;
  }
}
