
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 700px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: white; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header h2 { font-size: 18px; }
.header-sub { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 7px 13px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.content { padding: 20px; }
.aviso { background: #fff8e1; border: 2px solid #ffc107; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; font-size: 12px; color: #555; }
.aviso strong { color: #e65100; }
.stats-titulo { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.stat-card { border: 2px solid #e0e0e0; border-radius: 10px; padding: 10px; text-align: center; }
.stat-card .stat-emoji { font-size: 20px; margin-bottom: 4px; }
.stat-card .stat-nome { font-size: 10px; color: #888; font-weight: 600; margin-bottom: 3px; }
.stat-card .stat-num { font-size: 18px; font-weight: 800; color: #1b5e20; }
.stat-card .stat-num.loading { color: #bbb; font-size: 14px; }
.secao { border: 2px solid #e0e0e0; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.secao-titulo { font-size: 14px; font-weight: 800; color: #333; margin-bottom: 4px; }
.secao-desc { font-size: 12px; color: #666; margin-bottom: 12px; line-height: 1.5; }
.btn-backup { width: 100%; background: linear-gradient(135deg, #1b5e20, #2e7d32); color: white; border: none; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.btn-backup:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-restaurar { width: 100%; background: white; color: #c62828; border: 2px solid #c62828; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-restaurar:hover { background: #fdecea; }
.btn-restaurar:disabled { opacity: 0.5; cursor: not-allowed; }
.ultimo-backup { background: #f5f5f5; border-radius: 8px; padding: 10px 14px; margin-top: 12px; font-size: 12px; color: #555; display: none; }
.alerta-restore { background: #fdecea; border: 2px solid #e53935; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 12px; color: #c62828; font-weight: 600; display: none; }
.mensagem { padding: 12px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-top: 12px; display: none; }
.mensagem.sucesso { background: #e8f5e9; color: #1b5e20; border: 2px solid #43a047; }
.mensagem.erro { background: #fdecea; color: #c62828; border: 2px solid #e53935; }
.progress-bar { height: 6px; background: #e0e0e0; border-radius: 4px; overflow: hidden; margin-top: 12px; display: none; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #43a047, #66bb6a); width: 0%; transition: width 0.4s; border-radius: 4px; }

/* Campos de senha */
.senha-box { background: #f3f8ff; border: 2px solid #90caf9; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.senha-box .senha-titulo { font-size: 13px; font-weight: 700; color: #1565c0; margin-bottom: 8px; }
.senha-box .senha-desc { font-size: 11px; color: #777; margin-bottom: 10px; }
.senha-box label { font-size: 12px; font-weight: 600; color: #555; display: block; margin-bottom: 4px; margin-top: 8px; }
.senha-box input[type="password"] { width: 100%; padding: 10px 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; }
.senha-box input[type="password"]:focus { outline: none; border-color: #1565c0; }
.senha-indicador { margin-top: 6px; font-size: 11px; font-weight: 600; }
.badge-criptografado { display: inline-block; background: #1b5e20; color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.badge-aberto { display: inline-block; background: #f57f17; color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }

@media (max-width: 500px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

