/* Green & White Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f0fdf4;
  color: #1e4620;
}

/* Cards & Containers */
.container {
  max-width: 450px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-card, .connect-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(46, 125, 50, 0.1);
  border: 1px solid #c8e6c9;
  width: 100%;
}

.auth-card h2, .connect-card h2 {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2e7d32;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e8f5e9;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: #558b2f;
  transition: all 0.3s;
  width: 50%;
  text-align: center;
}

.tab-btn.active {
  color: #2e7d32;
  border-bottom: 2px solid #2e7d32;
  margin-bottom: -2px;
}

/* Form Elements */
.auth-form {
  display: none;
  animation: fadeIn 0.5s ease;
}

.auth-form.active {
  display: block;
}

input, select, button {
  width: 100%;
  padding: 0.875rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

input:focus, select:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

button {
  background: #2e7d32;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(46, 125, 50, 0.4);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  transition: all 0.3s;
}

.google-btn:hover {
  background: #f1f8e9;
  border-color: #2e7d32;
}

.separator {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #7cb342;
}

.separator::before, .separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #c8e6c9;
}

.separator::before { left: 0; }
.separator::after { right: 0; }

.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

.success-message {
  color: #2e7d32;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Dashboard Styles */
.dashboard-container {
  min-height: 100vh;
  background: #f0fdf4;
}

.navbar {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid #c8e6c9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar h1 {
  font-size: 1.5rem;
  color: #2e7d32;
}

.navbar button {
  background: #d32f2f;
  padding: 0.5rem 1rem;
  margin: 0;
  width: auto;
}

.dashboard-content {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

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

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #c8e6c9;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.stat-card h3 {
  color: #558b2f;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-top: 0.5rem;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.actions button, .actions .btn {
  background: #2e7d32;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.actions button:hover, .actions .btn:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

.tenants-list, .recent-chats, .chart-container {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #c8e6c9;
  margin-bottom: 2rem;
}

.tenants-list h3, .recent-chats h3, .chart-container h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1b5e20;
}

.tenant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e8f5e9;
}

.tenant-item:last-child {
  border-bottom: none;
}

.tenant-item button {
  background: #2e7d32;
  padding: 0.5rem 1rem;
  margin: 0;
  width: auto;
  font-size: 0.875rem;
}

.chat-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e8f5e9;
}

.chat-item:last-child {
  border-bottom: none;
}

.chat-item small {
  color: #7cb342;
  font-size: 0.75rem;
}

.chat-item strong {
  color: #2e7d32;
}

.back-link {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin-top: 1rem;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
  .dashboard-content { padding: 0 1rem; }
  .navbar { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Cancel button style */
button.cancel {
  background: #d32f2f;
}
button.cancel:hover {
  background: #b71c1c;
}
