@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  margin: 0;
  min-height: 100vh;
  color: #222;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: #fff;
  box-shadow: 2px 0 16px 0 rgba(99,102,241,0.08);
  width: 220px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
}
.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.sidebar .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #444;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
.sidebar .nav-link.active, .sidebar .nav-link:hover {
  background: linear-gradient(90deg, #6366f1 0%, #a21caf 100%);
  color: #fff;
}
.sidebar .logout-btn {
  margin-top: 2rem;
  background: #f3e8ff;
  color: #a21caf;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sidebar .logout-btn:hover {
  background: #a21caf;
  color: #fff;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e0e7ff;
  box-shadow: 0 2px 8px 0 rgba(99,102,241,0.06);
}
.header .profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a21caf 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px 0 rgba(99,102,241,0.15);
}

.dashboard {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.pill {
  background: linear-gradient(90deg, #6366f1 0%, #a21caf 100%);
  color: #fff;
  border-radius: 2rem;
  box-shadow: 0 4px 24px 0 rgba(99,102,241,0.10);
  padding: 1.5rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 180px;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  white-space: nowrap;
}
.pill:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(99,102,241,0.18);
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px 0 rgba(99,102,241,0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #6366f1;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.table th, .table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e7ff;
  text-align: left;
}
.table th {
  background: #f3e8ff;
  color: #6366f1;
  font-weight: 700;
}
.table tr:last-child td {
  border-bottom: none;
}

.btn {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(99,102,241,0.10);
}
.btn:hover {
  background: #a21caf;
}
.btn-secondary {
  background: #f3e8ff;
  color: #a21caf;
}
.btn-secondary:hover {
  background: #a21caf;
  color: #fff;
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e0e7ff;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #f9fafb;
  transition: border 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  border: 1.5px solid #6366f1;
  outline: none;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(99,102,241,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(99,102,241,0.18);
  padding: 2rem;
  min-width: 320px;
  max-width: 95vw;
  position: relative;
}
.modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a21caf;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar { width: 60px; padding: 1rem 0.5rem; }
  .sidebar .logo span { display: none; }
  .main { padding: 0.5rem; }
  .dashboard { padding: 1rem; }
}
@media (max-width: 600px) {
  .sidebar { display: none; }
  .header { flex-direction: column; gap: 1rem; padding: 1rem; }
  .dashboard { padding: 0.5rem; }
  .pill { min-width: 120px; padding: 1rem 1.25rem; font-size: 1rem; }
  .card { padding: 1rem; }
}

#login-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #a21caf 100%);
  position: fixed;
  inset: 0;
  z-index: 2000;
}
#login-overlay form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#login-overlay input.input {
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
}
#login-overlay .btn {
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
}
#login-overlay img {
  box-shadow: 0 2px 12px #6366f122;
}
.holdings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.holdings-table th, .holdings-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e7ff;
  text-align: left;
}
.holdings-table th {
  background: #f3e8ff;
  color: #6366f1;
  font-weight: 700;
}
.holdings-table tr:last-child td {
  border-bottom: none;
}
.pill.price-up { background: linear-gradient(90deg, #22c55e 0%, #a7f3d0 100%); color: #065f46; }
.pill.price-down { background: linear-gradient(90deg, #ef4444 0%, #fee2e2 100%); color: #991b1b; }
.pill.employee { background: linear-gradient(90deg, #06b6d4 0%, #6366f1 100%); color: #fff; }
.tenant-table, .maintenance-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.tenant-table th, .tenant-table td, .maintenance-table th, .maintenance-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e7ff;
  text-align: left;
}
.tenant-table th, .maintenance-table th {
  background: #f3e8ff;
  color: #6366f1;
  font-weight: 700;
}
.tenant-table tr:last-child td, .maintenance-table tr:last-child td {
  border-bottom: none;
}
.chart-container {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px 0 rgba(99,102,241,0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
  max-width: 100%;
  overflow-x: auto;
}
.toggle-graph {
  margin-right: 1.5rem;
  font-weight: 600;
  color: #6366f1;
  cursor: pointer;
  background: #f3e8ff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, color 0.2s;
}
.toggle-graph.active, .toggle-graph:hover {
  background: #6366f1;
  color: #fff;
}

.card pre {
  display: block;
  color: #a21caf;
  font-size: 0.95em;
  background: #f9fafb;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  margin-top: 0.5em;
  overflow-x: auto;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 2000;
  display: none;
  transition: opacity 0.3s;
}
.sidebar-mobile {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 80vw;
  max-width: 320px;
  background: var(--color-card);
  box-shadow: 2px 0 24px #6366f133;
  border-radius: 0 1.5rem 1.5rem 0;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.sidebar-mobile.open {
  transform: translateX(0);
}
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .sidebar-mobile {
    display: flex;
  }
  .main {
    padding-left: 0 !important;
  }
}

/* Responsive main content */
@media (max-width: 900px) {
  .main {
    padding: 0.5rem;
  }
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .dashboard-stats-grid {
    gap: 1rem 1rem !important;
  }
}
@media (max-width: 600px) {
  .main {
    padding: 0.2rem;
  }
  .card {
    padding: 0.5rem;
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr !important;
  }
  table, .table, .tenant-table, .maintenance-table {
    font-size: 0.95em;
    min-width: 600px;
  }
} 