/* Iron Portal — Generated by App Forge */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; }
.btn-primary { background: #0a0a0a; color: white; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: white; color: #0a0a0a; border: 2px solid #0a0a0a; }
.view { display: none; }
.view.active { display: block; }

/* Landing */
.landing-header { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #0a0a0a20, #0a0a0a05); }
.landing-header h1 { font-size: 3rem; margin-bottom: 16px; color: #0a0a0a; }
.landing-header p { font-size: 1.2rem; color: #666; margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
.price { font-size: 0.9rem; color: #999; }

/* Auth */
.auth-card { max-width: 400px; margin: 80px auto; padding: 40px; background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.auth-card h2 { margin-bottom: 24px; color: #0a0a0a; }
.auth-card input { width: 100%; padding: 12px; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
.auth-card .btn { width: 100%; }
.auth-card p { text-align: center; margin-top: 16px; color: #666; }
.auth-card a { color: #0a0a0a; }

/* Dashboard */
#dashboard.active { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: white; border-right: 1px solid #e0e0e0; padding: 20px 0; display: flex; flex-direction: column; }
.sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid #e0e0e0; }
.sidebar-header h2 { font-size: 1.2rem; color: #0a0a0a; }
.nav-items { flex: 1; padding: 10px 0; }
.nav-item { display: block; padding: 12px 20px; color: #333; text-decoration: none; border-left: 3px solid transparent; }
.nav-item:hover, .nav-item.active { background: #0a0a0a08; border-left-color: #0a0a0a; color: #0a0a0a; }
.sidebar-footer { padding: 20px; border-top: 1px solid #e0e0e0; }
.sidebar-footer a { color: #999; text-decoration: none; }
.main-content { flex: 1; padding: 30px; overflow-y: auto; }

/* Cards & Tables */
.card { background: white; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 16px; color: #0a0a0a; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { font-weight: 600; color: #666; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: white; border-radius: 12px; padding: 30px; width: 90%; max-width: 500px; }
.modal h3 { margin-bottom: 20px; color: #0a0a0a; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; }
.modal label { display: block; margin-bottom: 4px; font-size: 0.85rem; color: #666; font-weight: 600; }
.modal .btn { margin-top: 10px; }

/* Responsive */
@media (max-width: 768px) {
  #dashboard.active { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .nav-items { display: flex; }
  .nav-item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .sidebar-header, .sidebar-footer { display: none; }
}
