/* FoodFlow Theme v1 (Unified)
   Tudo em um só arquivo: Login + Painel + Dashboard
   Paleta: dark + laranja vibrante
*/

:root{
  --bg:#0f172a;           /* fundo */
  --card:#0b1224;         /* card */
  --text:#e5e7eb;         /* texto principal */
  --muted:#9ca3af;        /* texto secundário */
  --accent:#ff8000;       /* laranja principal */
  --accent2:#ffa24a;      /* laranja claro */
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:16px;
  --radius-sm:12px;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  color:var(--text);
  background: var(--bg);
}

/* ===========================
   FUNDO (LOGIN)
=========================== */

.ff-bg{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(255,128,0,.16), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(255,162,74,.12), transparent 55%),
    radial-gradient(900px 600px at 40% 100%, rgba(255,128,0,.08), transparent 60%),
    var(--bg);
}

/* Layout geral do login */
.ff-wrap{
  width:100%;
  max-width:980px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}

@media (max-width: 860px){
  .ff-wrap{ grid-template-columns:1fr; }
}

/* Painel/Brand */
.ff-brand{
  border-radius: var(--radius);
  padding:26px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.ff-brand::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, rgba(255,128,0,.16), rgba(255,255,255,0), rgba(255,162,74,.12));
  filter: blur(18px);
  opacity:.8;
  pointer-events:none;
}

.ff-brand-inner{ position:relative; }

.ff-logo{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.ff-logo img{
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  background:#111827;
}

.ff-title{
  margin:0;
  font-size:32px;
  letter-spacing:.2px;
  line-height:1.1;
}

.ff-slogan{
  margin:10px 0 0 0;
  color:var(--muted);
  font-size:15px;
  max-width:520px;
}

/* Badges */
.ff-badges{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ff-badge{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,128,0,.35);
  background: rgba(255,128,0,.10);
  color:#ffd7b5;
}

/* ===========================
   COMPONENTES (GERAL)
=========================== */

/* Card padrão */
.ff-card{
  border-radius: var(--radius);
  background: rgba(10,15,30,.72);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding:22px;
}

.ff-card h2{
  margin:0 0 4px 0;
  font-size:20px;
}

.ff-sub{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:13px;
}

/* Forms */
.ff-field{ margin-bottom:12px; }

.ff-label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 0;
}

.ff-input{
  width:100%;
  padding:12px 12px;
  border-radius: var(--radius-sm);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}

.ff-input:focus{
  border-color: rgba(255,128,0,.65);
  box-shadow: 0 0 0 4px rgba(255,128,0,.15);
}

/* Botões */
.ff-btn{
  width:100%;
  border:0;
  padding:12px 14px;
  border-radius: var(--radius-sm);
  cursor:pointer;
  font-weight:800;
  color:#111827;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.ff-btn:hover{ filter: brightness(1.03); }

/* Links */
.ff-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.ff-link{
  color:#ffd7b5;
  text-decoration:none;
  font-size:13px;
}

.ff-link:hover{ text-decoration:underline; }

/* Alertas */
.ff-alert{
  margin:0 0 12px 0;
  border-radius: var(--radius-sm);
  border:1px solid rgba(255,128,0,.45);
  background: rgba(255,128,0,.12);
  color:#ffe5d0;
  padding:10px 12px;
  font-size:13px;
}

/* Rodapé (geral) */
.ff-foot{
  margin-top:14px;
  color:rgba(229,231,235,.55);
  font-size:12px;
  text-align:center;
}

/* Utilitários */
.ff-hidden{ display:none !important; }
.ff-flex{ display:flex; }
.ff-gap-8{ gap:8px; }

/* ===========================
   PAINEL (SIDEBAR/TOPBAR)
=========================== */

.ff-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:260px 1fr;
}

.ff-sidebar{
  background: rgba(10,15,30,.95);
  border-right:1px solid rgba(255,255,255,.08);
  padding:18px;
}

.ff-sidebar .logo{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:24px;
}

.ff-sidebar .logo img{
  width:42px;
  height:42px;
  border-radius:10px;
  object-fit:cover;
}

.ff-sidebar .logo strong{
  font-size:18px;
}

.ff-menu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  margin-bottom:6px;
}

.ff-menu a:hover{
  background: rgba(255,128,0,.12);
  color:#ffd7b5;
}

.ff-content{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.ff-top{
  padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.ff-main{
  padding:22px;
}

/* ===========================
   DASHBOARD (KPIs)
=========================== */

.ff-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;
}

.ff-kpi{
  background: rgba(10,15,30,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.ff-kpi span{
  font-size:12px;
  color:#9ca3af;
}

.ff-kpi strong{
  display:block;
  font-size:24px;
  margin-top:6px;
  color:#ffb26b;
}

/* ===========================
   RESPONSIVO (PAINEL)
=========================== */

@media (max-width: 860px){
  .ff-app{ grid-template-columns:1fr; }
  .ff-sidebar{ display:none; }
  .ff-main{ padding:18px; }
}
/* Footer do painel (fixa no fim quando o conteúdo é curto) */
.ff-footer{
  margin-top:auto;
  padding:18px;
  color:rgba(229,231,235,.55);
  font-size:12px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.08);
}