/* ===================================================
   RECEITAS RÁPIDAS — Design System & Styles
   =================================================== */

/* ===== Design Tokens ===== */
:root {
  --primary: #5D7F9E;
  --primary-dark: #4e6d89;
  --primary-10: rgba(93, 127, 158, 0.1);
  --primary-20: rgba(93, 127, 158, 0.2);
  --primary-30: rgba(93, 127, 158, 0.3);
  --primary-60: rgba(93, 127, 158, 0.6);

  --bg-app: #f6f7f7;
  --bg-white: #ffffff;
  --bg-card: #ffffff;

  --text-900: #0f172a;
  --text-800: #1e293b;
  --text-700: #334155;
  --text-500: #64748b;
  --text-400: #94a3b8;
  --text-300: #cbd5e1;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 8px 20px rgba(93, 127, 158, 0.3);

  --font: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-app);
  color: var(--text-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== App Container ===== */
.app-container {
  width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-white);
  overflow: hidden;
}

/* ===== Screen Management ===== */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  animation: screenFadeIn 0.3s ease;
}

.screen.active {
  display: flex;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   SCREEN 1: LOGIN
   ============================================= */
.login-screen {
  background: var(--bg-white);
  padding: 3rem 1.5rem 2rem;
  align-items: center;
  justify-content: center;
}

/* Logo Section */
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.login-logo-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.login-logo-icon .material-symbols-outlined {
  font-size: 36px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1;
}

.login-logo h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.02em;
}

.login-logo p {
  font-size: 0.875rem;
  color: var(--text-500);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Hero Illustration */
.login-hero {
  width: 100%;
  max-width: 380px;
  height: 120px;
  border-radius: var(--radius-xl);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.login-hero .material-symbols-outlined {
  font-size: 48px;
  color: var(--primary-30);
}

/* Login Form */
.login-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-700);
  margin-left: 0.25rem;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
}

.form-label-row a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition);
}

.form-label-row a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .material-symbols-outlined {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-400);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-900);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrapper input::placeholder {
  color: var(--text-400);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
}

.input-wrapper.has-toggle input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  color: var(--text-400);
  transition: color var(--transition);
}

.password-toggle:hover {
  color: var(--primary);
}

.password-toggle .material-symbols-outlined {
  font-size: 22px;
}

/* Login Error */
.login-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  animation: shake 0.4s ease;
}

.login-error.visible {
  display: block;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform 0.1s ease;
}

.login-btn:hover {
  background: var(--primary-dark);
}

.login-btn:active {
  transform: scale(0.98);
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 380px;
}

.login-divider span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Social Buttons */
.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.social-btn:hover {
  background: var(--bg-app);
  border-color: var(--text-300);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-700);
}

/* Login Footer */
.login-footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  width: 100%;
}

.login-footer p {
  font-size: 0.875rem;
  color: var(--text-500);
}

.login-footer a {
  color: var(--primary);
  font-weight: 700;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* =============================================
   SCREEN 2: DASHBOARD
   ============================================= */
.dashboard-screen {
  background: var(--bg-app);
  position: relative;
}

/* Fixed Header */
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--primary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-header .material-symbols-outlined {
  color: white;
  font-size: 24px;
}

.dashboard-header h1 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dashboard-header-right button {
  color: white;
  padding: 0.25rem;
}

/* Dashboard Content Area */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 100px;
}

/* Tab Views */
.tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===== Início Tab ===== */
.tab-inicio {
  padding: 1.5rem 1rem;
}

.section-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.section-label h2 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label-bar {
  width: 32px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Recipe Cards */
.recipe-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.recipe-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 0.875rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-20);
}

.recipe-card:active {
  transform: scale(0.98);
}

.recipe-card-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-app);
}

.recipe-card-info {
  flex: 1;
  min-width: 0;
}

.recipe-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-900);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-500);
}

.recipe-card-meta .material-symbols-outlined {
  font-size: 14px;
}

.recipe-card-chevron {
  flex-shrink: 0;
  color: var(--text-400);
}

.recipe-card-chevron .material-symbols-outlined {
  font-size: 24px;
}

/* ===== Categorias Tab ===== */
.tab-categorias {
  padding: 1.5rem 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card:active {
  transform: scale(0.97);
}

.category-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: var(--primary-10);
}

.category-card-body {
  padding: 0.75rem;
}

.category-card-body h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-800);
  line-height: 1.3;
}

.category-card-body p {
  font-size: 0.6875rem;
  color: var(--text-500);
  margin-top: 0.25rem;
}

/* ===== Suporte Tab ===== */
.tab-suporte {
  padding: 2rem 1.5rem;
}

.support-header {
  text-align: center;
  margin-bottom: 2rem;
}

.support-header .material-symbols-outlined {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.support-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-900);
}

.support-header p {
  font-size: 0.875rem;
  color: var(--text-500);
  margin-top: 0.5rem;
}

.support-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}

.support-card:hover {
  transform: translateY(-1px);
}

.support-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-card-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--primary);
}

.support-card-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-800);
}

.support-card-info p {
  font-size: 0.8125rem;
  color: var(--text-500);
  margin-top: 0.125rem;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1.25rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  z-index: 40;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  color: var(--text-400);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item .material-symbols-outlined {
  font-size: 26px;
}

.nav-item span:last-child {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   SCREEN 3: RECIPE DETAIL
   ============================================= */
.recipe-screen {
  background: var(--bg-white);
}

/* Sticky Top Nav */
.recipe-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--primary-10);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recipe-back-btn {
  display: flex;
  align-items: center;
  color: var(--primary);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0;
}

.recipe-back-btn .material-symbols-outlined {
  font-size: 24px;
}

.recipe-back-btn span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
}

.recipe-top-nav-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-60);
}

.recipe-top-nav-spacer {
  width: 60px;
}

/* Hero Image */
.recipe-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

/* Recipe Content */
.recipe-content {
  padding: 2rem 1.5rem 8rem;
}

/* Recipe Meta Tags */
.recipe-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.recipe-tag {
  padding: 0.25rem 0.625rem;
  background: var(--primary-10);
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Recipe Title */
.recipe-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.recipe-description {
  font-size: 0.9375rem;
  color: var(--text-500);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

/* Sections */
.recipe-section {
  margin-bottom: 2.5rem;
}

.recipe-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.recipe-section-header .material-symbols-outlined {
  font-size: 22px;
  color: var(--primary);
}

.recipe-section-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-800);
}

/* Ingredients List */
.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.ingredient-item:hover {
  background: var(--primary-10);
}

.ingredient-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary-30);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
  background: transparent;
}

.ingredient-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.ingredient-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.ingredient-checkbox:focus {
  box-shadow: 0 0 0 3px var(--primary-10);
}

.ingredient-text {
  font-size: 0.9375rem;
  color: var(--text-700);
  transition: all var(--transition);
  line-height: 1.4;
}

.ingredient-checkbox:checked+.ingredient-text {
  text-decoration: line-through;
  color: var(--text-400);
}

/* Preparation Steps */
.steps-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.steps-container::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--primary-10);
}

.step {
  position: relative;
  padding-left: 2.75rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.step h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-800);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-500);
  line-height: 1.65;
}

/* Floating Back Button */
.float-back-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, var(--bg-white), rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
  z-index: 40;
  display: flex;
  justify-content: center;
}

.float-back-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
  transition: transform 0.15s ease, box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.float-back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(93, 127, 158, 0.4);
}

.float-back-btn:active {
  transform: scale(0.95);
}

.float-back-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ===== Loading Spinner ===== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Scrollbar Styling ===== */
.dashboard-content::-webkit-scrollbar {
  width: 0;
}

/* ===== "Receita Utilizada" Badge ===== */
.recipe-card-wrapper {
  position: relative;
}

.recipe-used-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.recipe-used-badge .material-symbols-outlined {
  font-size: 12px;
}

/* Recipe Detail — Used Toggle */
.recipe-used-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-app);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  cursor: pointer;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.recipe-used-toggle:hover {
  border-color: var(--primary-30);
}

.recipe-used-toggle.is-used {
  background: #f0fdf4;
  border-color: #86efac;
}

.recipe-used-toggle .toggle-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary-30);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
  background: transparent;
}

.recipe-used-toggle .toggle-checkbox:checked {
  background: #16a34a;
  border-color: #16a34a;
}

.recipe-used-toggle .toggle-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 13px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.recipe-used-toggle .toggle-label {
  display: flex;
  flex-direction: column;
}

.recipe-used-toggle .toggle-label strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-800);
}

.recipe-used-toggle .toggle-label span {
  font-size: 0.75rem;
  color: var(--text-500);
}

/* ===== RESPONSIVE — Tablet (≥768px) ===== */
@media (min-width: 768px) {

  /* Login centers nicely on tablet */
  .login-screen {
    padding: 4rem 3rem;
  }

  .login-form,
  .login-divider,
  .social-buttons,
  .login-hero {
    max-width: 440px;
  }

  /* Dashboard header */
  .dashboard-header {
    padding: 1.25rem 2rem;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  /* Tabs get wider padding */
  .tab-inicio,
  .tab-categorias,
  .tab-suporte {
    padding: 2rem;
  }

  /* Recipe cards as 2-column grid */
  .recipe-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .recipe-card-img {
    width: 80px;
    height: 80px;
  }

  /* Category grid — 3 columns */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .category-card-img {
    height: 130px;
  }

  /* Support cards 2-column */
  .support-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Recipe detail content wider */
  .recipe-content {
    padding: 2rem 3rem 8rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .recipe-hero {
    aspect-ratio: 21 / 9;
  }

  .recipe-title {
    font-size: 2.25rem;
  }

  /* Bottom nav spacing */
  .bottom-nav {
    gap: 3rem;
  }
}

/* ===== RESPONSIVE — Desktop (≥1024px) ===== */
@media (min-width: 1024px) {

  /* Login — centered card look */
  .login-screen {
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh;
    justify-content: center;
  }

  /* Dashboard converts to sidebar layout */
  .dashboard-screen {
    display: flex;
    flex-direction: column;
  }

  .dashboard-header {
    padding: 1.25rem 3rem;
  }

  .dashboard-header h1 {
    font-size: 1.625rem;
  }

  /* Tabs get wider padding */
  .tab-inicio,
  .tab-categorias,
  .tab-suporte {
    padding: 2.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }

  /* Recipe cards — 3-column grid on desktop */
  .recipe-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .recipe-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }

  .recipe-card-img {
    width: 100%;
    height: 160px;
    border-radius: 0;
  }

  .recipe-card-info {
    padding: 1rem 1.25rem 0.5rem;
  }

  .recipe-card-info h3 {
    font-size: 1.0625rem;
  }

  .recipe-card-meta {
    padding: 0 1.25rem 1rem;
  }

  .recipe-card-chevron {
    display: none;
  }

  /* Category grid — 4 columns */
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .category-card-img {
    height: 160px;
  }

  .category-card-body h3 {
    font-size: 0.9375rem;
  }

  /* Support cards — 2 columns */
  .support-cards {
    max-width: 700px;
  }

  /* Recipe detail — wide centered */
  .recipe-content {
    padding: 2.5rem 4rem 8rem;
    max-width: 900px;
  }

  .recipe-hero {
    aspect-ratio: 21 / 9;
    max-height: 420px;
  }

  .recipe-title {
    font-size: 2.5rem;
  }

  .recipe-description {
    font-size: 1.0625rem;
  }

  /* Bottom nav → horizontal top-like nav feel with more spacing */
  .bottom-nav {
    gap: 4rem;
  }

  .nav-item {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-item:hover {
    background: var(--primary-10);
  }

  .nav-item span:last-child {
    font-size: 0.8125rem;
  }
}

/* ===== RESPONSIVE — Large Desktop (≥1440px) ===== */
@media (min-width: 1440px) {

  .tab-inicio,
  .tab-categorias,
  .tab-suporte {
    max-width: 1400px;
  }

  /* Recipe cards — 4 columns on large screens */
  .recipe-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Category grid — 5 columns */
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .recipe-content {
    max-width: 1000px;
  }
}

/* ===== Empty State ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state .material-symbols-outlined {
  font-size: 48px;
  color: var(--primary-30);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: 0.25rem;
}

.empty-state p {
  font-size: 0.8125rem;
  color: var(--text-500);
}

/* ===== Category Filter Banner ===== */
.filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-10);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.filter-banner p {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.filter-clear-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-white);
  border: 1px solid var(--primary-20);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
}

.filter-clear-btn:hover {
  background: var(--primary-10);
}