* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f0f1a; color: #e0e0e0; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%); }
.login-card { background: #1a1a2e; padding: 2.5rem; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); width: 100%; max-width: 400px; text-align: center; border: 1px solid #2a2a4a; }
.login-card h1 { font-size: 1.8rem; color: #e0e0e0; margin-bottom: 0.3rem; }
.login-card p { color: #888; font-size: 0.9rem; margin-bottom: 1.5rem; }
.login-card input { width: 100%; padding: 12px 16px; margin-bottom: 12px; border: 2px solid #2a2a4a; border-radius: 8px; font-size: 1rem; background: #0f0f1a; color: #e0e0e0; transition: border 0.2s; }
.login-card input:focus { outline: none; border-color: #e94560; }
.login-card button { width: 100%; padding: 12px; background: #e94560; color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.login-card button:hover { background: #d63851; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert.erro { background: #2a1a1a; color: #ef5350; border: 1px solid #4a1a1a; }

.navbar { background: #1a1a2e; padding: 0.8rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #2a2a4a; }
.navbar .logo { font-size: 1.3rem; font-weight: 700; color: #e94560; }
.navbar .user { font-size: 0.9rem; color: #aaa; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navbar .user a { color: #e0e0e0; }

.container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.container h2 { margin-bottom: 1.5rem; color: #e0e0e0; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.filtros select, .filtros button { padding: 8px 12px; border: 2px solid #2a2a4a; border-radius: 8px; font-size: 0.9rem; background: #1a1a2e; color: #e0e0e0; }
.filtros button { background: #e94560; color: white; border: none; cursor: pointer; font-weight: 600; }
.filtros button:hover { background: #d63851; }
.filtros a { font-size: 0.85rem; }

.btn-small { padding: 6px 14px; background: #2a2a4a; color: #e0e0e0; border: 1px solid #3a3a5a; border-radius: 6px; text-decoration: none; font-size: 0.85rem; display: inline-block; cursor: pointer; transition: background 0.2s; }
.btn-small:hover { background: #3a3a5a; }

.btn { padding: 10px 24px; background: #e94560; color: white; border: none; border-radius: 8px; text-decoration: none; font-size: 0.95rem; display: inline-block; cursor: pointer; font-weight: 600; transition: background 0.2s; }
.btn:hover { background: #d63851; }
.btn-full { width: 100%; margin-top: 1rem; }
.btn-danger { padding: 8px 20px; background: #4a1a1a; color: #ef5350; border: 1px solid #6a2a2a; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.btn-danger:hover { background: #5a2a2a; }

.empty { text-align: center; padding: 4rem 2rem; background: #1a1a2e; border-radius: 16px; border: 1px solid #2a2a4a; }
.empty p { color: #888; margin-bottom: 1.5rem; font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.card { background: #1a1a2e; border-radius: 12px; border: 1px solid #2a2a4a; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-2px); border-color: #e94560; }
.card-header { padding: 0.8rem 1rem; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #2a2a4a; }
.card-body { padding: 1rem; }
.card-body .data { font-size: 0.85rem; color: #888; margin-bottom: 6px; }
.card-body .desc { font-size: 0.95rem; color: #ccc; line-height: 1.4; }
.card-body .fotos-info { font-size: 0.85rem; color: #e94560; margin-top: 6px; }
.card-body .valor { font-size: 0.85rem; color: #66bb6a; margin-top: 4px; font-weight: 600; }
.card-footer { padding: 0.8rem 1rem; border-top: 1px solid #2a2a4a; text-align: right; }
.card-footer .btn-small { background: #2a2a4a; color: #e0e0e0; border: 1px solid #3a3a5a; }
.card-footer .btn-small:hover { background: #3a3a5a; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge.tipo { background: #3a2a1a; color: #ffa726; }
.badge-ifood { background: #1a2a1a; color: #66bb6a; }
.badge-uber-eats { background: #1a1a3a; color: #64b5f6; }
.badge-99 { background: #2a1a1a; color: #ef5350; }
.badge-outro { background: #2a1a3a; color: #ce93d8; }

.detail-card { background: #1a1a2e; border-radius: 16px; border: 1px solid #2a2a4a; overflow: hidden; }
.detail-header { padding: 1.5rem; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid #2a2a4a; }
.detail-body { padding: 1.5rem; }
.detail-body p { margin-bottom: 8px; font-size: 0.95rem; }
.detail-body hr { margin: 1rem 0; border: none; border-top: 1px solid #2a2a4a; }
.descricao-texto { background: #0f0f1a; padding: 1rem; border-radius: 8px; line-height: 1.6; margin-top: 8px; white-space: pre-wrap; border: 1px solid #2a2a4a; }
.detail-files { padding: 0 1.5rem 1.5rem; }
.detail-files h3 { margin-bottom: 1rem; font-size: 1rem; color: #e0e0e0; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file-item { border: 2px solid #2a2a4a; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: #0f0f1a; }
.file-item a { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.file-item img { width: 100%; height: 100%; object-fit: cover; }
.file-fallback { display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: #e94560; }
.detail-actions { padding: 1rem 1.5rem; border-top: 1px solid #2a2a4a; }

.form-container { max-width: 600px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: #aaa; }
.form-group select, .form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 2px solid #2a2a4a; border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #0f0f1a; color: #e0e0e0; transition: border 0.2s; }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #e94560; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group small { display: block; font-size: 0.8rem; color: #666; margin-top: 4px; }
.form-group input[type="file"] { padding: 8px; }
.form-row { display: flex; gap: 1rem; }
.form-row .half { flex: 1; }

@media (max-width: 600px) {
  .navbar { flex-direction: column; gap: 8px; padding: 0.8rem 1rem; }
  .navbar .user { justify-content: center; }
  .form-row { flex-direction: column; gap: 0; }
  .card-grid { grid-template-columns: 1fr; }
}
