/* Central Bureaucracy — Hermes Desk — 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-sm { padding: 6px 12px; font-size: 13px; }
.btn-primary { background: #2e7d32; color: white; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: white; color: #2e7d32; border: 2px solid #2e7d32; }
.btn-danger { background: #c62828; color: white; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-stamp { background: #e65100; color: white; }
.btn-stamp:hover { filter: brightness(1.1); }
.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, #2e7d3220, #2e7d3205); }
.landing-header h1 { font-size: 3rem; margin-bottom: 16px; color: #2e7d32; }
.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: #2e7d32; }
.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: #2e7d32; }

/* Dashboard Layout */
#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: #2e7d32; }
.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: #2e7d3208; border-left-color: #2e7d32; color: #2e7d32; }
.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; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat-card { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; color: #2e7d32; }
.stat-label { font-size: 1.1rem; font-weight: 600; color: #333; margin-top: 4px; }
.stat-detail { font-size: 0.85rem; color: #999; margin-top: 4px; }

/* 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: #2e7d32; }
.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th, .clean-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.clean-table th { font-weight: 600; color: #666; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
.clean-table code { background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.actions { white-space: nowrap; }
.actions .btn { margin-right: 4px; }
.empty-state { color: #999; padding: 20px 0; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-secret { background: #c62828; color: white; }
.badge-confidential { background: #e65100; color: white; }
.badge-internal { background: #1565c0; color: white; }
.badge-public { background: #2e7d32; color: white; }
.badge-stamped { background: #6a1b9a; color: white; }

/* Search */
.search-bar { margin-bottom: 16px; }
.search-bar input { width: 100%; padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }

/* Modal */
.modal { 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-content { background: white; border-radius: 12px; padding: 30px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-content h3 { margin-bottom: 20px; color: #2e7d32; }
.modal-content label { display: block; font-weight: 600; font-size: 13px; color: #555; margin-bottom: 4px; margin-top: 12px; }
.modal-content input, .modal-content select, .modal-content textarea { width: 100%; padding: 10px; margin-bottom: 4px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.modal-content textarea { font-family: inherit; resize: vertical; }
.modal-actions { margin-top: 20px; display: flex; gap: 10px; }

/* Decrypt Output */
.decrypt-output { background: #1b5e20; color: #a5d6a7; padding: 16px; border-radius: 8px; font-family: 'SF Mono', Monaco, Consolas, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow-y: auto; }

/* Upload */
.upload-zone { border: 2px dashed #ccc; border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: #2e7d32; background: #2e7d3208; }
.file-icon { width: 80px; height: 80px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; }
.file-icon-video { background: #1b5e20; }
.file-icon-audio { background: #1565c0; }
.file-icon-doc { background: #555; }
#file-info label { display: block; font-weight: 600; font-size: 13px; color: #555; margin-bottom: 4px; margin-top: 12px; }
#file-info input, #file-info select, #file-info textarea { width: 100%; padding: 10px; margin-bottom: 4px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
#file-info textarea { font-family: inherit; resize: vertical; }

/* 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; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .clean-table { font-size: 12px; }
  .clean-table th, .clean-table td { padding: 6px 8px; }
}
