@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg-color: #0f172a; /* Slate 900 */
  --bg-main: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --surface: #1e293b; /* Slate 800 */
  --surface-glass: rgba(30, 41, 59, 0.78);
  
  /* Cores vibrantes (Laranja/Amarelo estilo mobilidade) */
  --primary: #f97316; /* Laranja */
  --orange: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.4);
  --secondary: #10b981; /* Verde Sucesso */
  --success: #22c55e;
  
  --text: #f8fafc;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --danger: #ef4444;
  --warning: #eab308;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Outfit', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: #090d16;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.14) 0%, #090d16 55%);
}

#app-container,
.app-container {
  width: 100%;
  max-width: 414px; /* Padrão Mobile App (iPhone Max / Android) */
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-color);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Header */
header,
.app-header {
  padding: 0.85rem 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
  width: 100%;
}

header h1 {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.content,
.app-content {
  flex: 1;
  width: 100%;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow-x: hidden;
}

/* Telas (Views) */
.view {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s ease forwards;
}

.view.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tipografia */
h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Inputs & Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

input {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* File Upload Button */
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.upload-btn {
  border: 2px dashed var(--border-color);
  color: var(--text-muted);
  background-color: transparent;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

/* Buttons */
.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', 'Nunito', sans-serif;
  max-width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary {
  background: var(--surface);
  box-shadow: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-success {
  background: var(--secondary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Cards Padrão do App Mobile */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.15rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.upload-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.upload-card:hover {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.06);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.input, select {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Cards de Status */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.status-card.pending::before { background: var(--warning); }
.status-card.approved::before { background: var(--primary); }
.status-card.ready::before { background: var(--secondary); }

.icon-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pending .icon-large { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.approved .icon-large { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.ready .icon-large { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }

/* Loader */
.loader {
  border: 3px solid var(--surface);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: none;
}
.btn.loading .loader { display: block; }
.btn.loading span { display: none; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Info Row */
.info-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 0.9rem; }
.info-value { font-weight: 600; font-size: 0.95rem; text-align: right;}
 
   
/* WIZARD STYLES */ 

/* PROGRESS BAR */
#wizard-progress {
  padding: 0 1.5rem 1rem;
  width: 100%;
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

/* WIZARD VIEWS */
.view {
  display: none;
  animation: slideInRight 0.4s ease forwards;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-image {
  /* Fundo removido conforme solicitado */
  background: transparent;
  width: auto;
  height: 100px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* PLANS */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.plan-card {
  background: var(--surface);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.plan-card.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}
.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.plan-header h3 { font-size: 1.2rem; }
.badge {
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.plan-price { font-size: 1rem; }

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tl-item {
  display: flex;
  gap: 1rem;
}
.tl-icon {
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.tl-content h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.tl-content p { font-size: 0.9rem; color: var(--text-muted); }
.hidden { display: none !important; }

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 396px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.25s ease-out;
    margin: auto;
    box-sizing: border-box;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-icon-sm {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}



/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--danger);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 24px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Notificações */
.bell-container { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bell-badge { position: absolute; top: -5px; right: -5px; background: var(--danger); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight: bold; display: none; }
.notifications-panel { display: none; position: absolute; top: 70px; right: 1.5rem; width: 320px; max-height: 400px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 100; padding: 1rem; flex-direction: column; gap: 0.5rem; }
.notification-item { padding: 0.75rem; border-radius: 8px; background: var(--surface-glass); border-left: 4px solid var(--primary); cursor: pointer; transition: background 0.2s; }
.notification-item.lida { border-left-color: var(--text-muted); opacity: 0.7; }
.notification-item:hover { background: rgba(255,255,255,0.1); }
.toast-push { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: var(--surface); border-left: 4px solid var(--secondary); border-radius: 12px; padding: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.toast-push.show { top: 120px; }
/* o aviso não pode cobrir o botão Sair do cabeçalho: só o X do aviso recebe toque */
.toast-push { pointer-events: none; }
.toast-push i, .toast-push svg { pointer-events: auto; }
#header-logout { position: relative; z-index: 100000; }
