:root {
  --main-bg-color: #f8f5f0;
  --spining-bg: #f8f5f0de;
  --header-color: #a52a2a;
  --accent-color: #d4af37;
  --secondary-accent: #c19b76;
  --text-color: #333;
  --light-text: #777;
  --border-color: #8b4513;
  --card-bg: #fefdf9;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --favorite-color: #e74c3c;
  --header-bg: #a52a2a;
  --rejected-color: #e74c3c;
  
  /* NOVAS VARIÁVEIS PARA CATEGORIAS */
  --categoria-doce-bg: #fef3c7;
  --categoria-doce-color: #92400e;
  --categoria-doce-border: #f59e0b;
  --categoria-salgado-bg: #fee2e2;
  --categoria-salgado-color: #991b1b;
  --categoria-salgado-border: #ef4444;
}
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Playfair Display', 'Georgia', serif;
      background-color: var(--main-bg-color);
      color: var(--text-color);
      line-height: 1.7;
      padding: 0;
      max-width: 1400px;
      margin: 0 auto;
      background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23f8f5f0'/%3E%3Cpath d='M0 0l100 100M100 0L0 100' stroke='%23e8e1d3' stroke-width='0.9'/%3E%3C/svg%3E");
      position: relative;
      overflow-x: hidden;
    }
    
    
    
    /* HEADER COM LARGURA TOTAL */
        .header-full-width {
 position: sticky;
    left: 50%;
    right: 50%;
    z-index: 1000;
    top: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #8b0000, var(--header-bg));
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
        }

        
.header-full-width.scrolled-up {
    animation: headerSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

/* Animações suaves */
@keyframes headerSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes headerSlideUp {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* HEADER MINIMIZADO - Estado quando rola */
.header-full-width.scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #8b0000db, var(--header-bg));
}

/* Ajustar container quando minimizado */
.header-full-width.scrolled .header-container {
    padding: 5px 20px !important;
    position: relative;
    min-height: 60px;
}

/* Esconder elementos quando minimizado */
.header-full-width.scrolled .newspaper-subtitle,
.header-full-width.scrolled .newspaper-date,
.header-full-width.scrolled .nav-links {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

/* MANTENDO header-top visível */
.header-full-width.scrolled .header-top {
    max-height: 30px !important;
    opacity: 1 !important;
    margin-bottom: 5px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease;
}

/* Título do jornal quando minimizado */
.header-full-width.scrolled .newspaper-title {
    font-size: 2.8rem !important;
    margin: 5px 0 !important;
    padding: 0 35px !important;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 5;
}

/* ESTRELAS quando minimizado */
.header-full-width.scrolled .newspaper-title::before,
.header-full-width.scrolled .newspaper-title::after {
    content: "✶" !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--accent-color) !important;
    font-size: 2rem !important;
    text-shadow: none !important;
    opacity: 1 !important;
    display: block !important;
}

.header-full-width.scrolled .newspaper-title::before {
    left: -5px !important;
}

.header-full-width.scrolled .newspaper-title::after {
    right: -5px !important;
}

/* NEWSPAPER PRICE e VOLUME quando minimizado - POSIÇÃO ORIGINAL */
.header-full-width.scrolled .newspaper-price {
    position: absolute !important;
    top: 20px !important;
    right: -15px !important;
    font-size: 1rem !important;
    height: 35px !important;
    color: var(--header-color) !important;
    background: var(--accent-color) !important;
    transform: none !important;
}


/* Ícones dentro do volume */
.header-full-width.scrolled .newspaper-volume .menu-icon,
.header-full-width.scrolled .newspaper-volume .user-icon {
    margin: 0 8px !important;
    height: 25px !important;
    width: 25px !important;
    font-size: 22px;
}

/* ANIMAÇÃO para o conteúdo principal quando header minimiza */
.content-wrapper {
    transition: transform 0.4s ease;
}

.header-full-width.scrolled ~ .content-wrapper {
    transform: translateY(-40px);
}

/* ===================== RESPONSIVIDADE PARA HEADER FIXO ===================== */

@media (max-width: 768px) {
    .header-full-width.scrolled {
        padding-top: 3px;
        padding-bottom: 3px;
    }
    
    .header-full-width.scrolled .header-container {
        padding: 3px 15px !important;
        min-height: 50px;
    }
    
    .header-full-width.scrolled .newspaper-title {
        font-size: 1.5rem !important;
        padding: 0 15px !important;
        margin: 10px 0 !important;
    }
    
    .header-full-width.scrolled .newspaper-title::before,
    .header-full-width.scrolled .newspaper-title::after {
        font-size: 0.9rem !important;
    }
    
    .header-full-width.scrolled .newspaper-price,
    .header-full-width.scrolled .newspaper-volume {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
        height: 25px !important;
        top: 15px !important;
    }
    
    .header-full-width.scrolled .newspaper-price {
        right: 5px !important;
    }
    
    .header-full-width.scrolled .newspaper-volume {
        left: 5px !important;
    }
}

@media (max-width: 480px) {
    .header-full-width.scrolled .newspaper-title {
        font-size: 1.3rem !important;
        padding: 0 20px !important;
        margin: 8px 0 !important;
    }
    
    .header-full-width.scrolled .newspaper-price,
    .header-full-width.scrolled .newspaper-volume {
        display: none !important;
    }
    
    .header-full-width.scrolled .newspaper-title::before,
    .header-full-width.scrolled .newspaper-title::after {
        font-size: 0.9rem !important;
    }
}
    
    .header-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 15px 20px;
    }
    
    .newspaper-header {
      text-align: center;
      position: relative;
      padding: 10px 0 20px;
    }

    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

   /* Ícones do menu e usuário */
.menu-icon,
.user-icon {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 3px; 
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    height: 35px; 
    width: 35px;  
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.newspaper-volume .user-icon {
    margin: 0; /* remove margem */
    height: 35px;
    width: 35px;
}

.menu-icon:hover,
.user-icon:hover {
    transform: scale(1.1);
}

/* Título do jornal */
.newspaper-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 15px 0 5px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.newspaper-title::before,
.newspaper-title::after {
    content: "✶";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 3rem;
    text-shadow: none;
}

.newspaper-title::before {
    left: -40px;
}

.newspaper-title::after {
    right: -40px;
}

/* Subtítulo */
.newspaper-subtitle {
    font-style: italic;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    letter-spacing: 1px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Data */
.newspaper-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    font-weight: 500;
}

.newspaper-price,
.newspaper-volume {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 30px;
    height: 40px;
    line-height: 1; 
    display: flex;
    align-items: center; 
    justify-content: center;
    box-shadow: var(--shadow);
    position: absolute;
}
/* Posição e cores */
.newspaper-price {
    top: 20px;
    right: -15px;
    color: var(--header-color);
    background: var(--accent-color);
}

.newspaper-volume {
    top: 20px;
    left: -15px;
    color: var(--header-color);
    background: rgba(255, 255, 255, 0.3);
}

/* Ícones dentro do volume */
.newspaper-volume .menu-icon,
.newspaper-volume .user-icon {
    margin: 0 7px;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    
    /* Container para o conteúdo com margens */
    .content-wrapper {
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
    }
    
    /* SIDEBAR */
      .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        height: 100%;
        width: 300px;
        background: linear-gradient(180deg, var(--secondary-accent), var(--accent-color));
        color: white;
        padding: 30px 20px;
        transition: all 0.4s;
        z-index: 2001; /* Acima dos modais também */
        overflow-y: auto;
      }

    .sidebar.show {
      left: 0;
    }
    
    .sidebar h3 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 1.5rem;
    }
    
    .sidebar a {
      display: flex;
      align-items: center;
      color: white;
      text-decoration: none;
      margin: 15px 0;
      padding: 12px 15px;
      border-radius: 8px;
      transition: var(--transition);
    }
    
    .sidebar a i {
      margin-right: 10px;
      width: 20px;
      text-align: center;
    }
    
    .sidebar a:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateX(5px);
    }
    
    /* Navegação melhorada */
    .nav-links {
      display: flex;
      justify-content: center;
      gap: 25px;
      margin: 10px 0;
      flex-wrap: wrap;
    }
    
    .nav-links a {
      text-decoration: none;
      color: var(--header-color);
      font-weight: 600;
      padding: 14px 30px;
      border: 2px solid var(--header-color);
      border-radius: 50px;
      transition: var(--transition);
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      position: relative;
      overflow: hidden;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .nav-links a i {
      font-size: 1.2rem;
    }
    
    .nav-links a:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 0%;
      height: 100%;
      background: var(--header-color);
      transition: var(--transition);
      z-index: -1;
      border-radius: 50px;
    }
    
    .nav-links a:hover:before {
      width: 100%;
    }
    
    .nav-links a:hover {
      color: #fff;
      box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
    }
    
    .tab-buttons {
      display: flex;
      border-bottom: 2px solid var(--accent-color);
      margin-bottom: 30px;
    }
    
    .tab-button {
      padding: 15px 30px;
      background: none;
      border: none;
      font-family: inherit;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--light-text);
      cursor: pointer;
      transition: var(--transition);
      position: relative;
    }
    
    .tab-button.active {
      color: var(--header-color);
    }
    
    .tab-button.active::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 3px;
      background: var(--header-color);
    }
    
    .tab-button .badge {
      margin-left: 8px;
      background: var(--accent-color);
      color: var(--header-color);
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: bold;
    }
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
      animation: fadeIn 0.5s ease;
    }
    
    /* Carrossel modernizado */
    .carousel-container {
      position: relative;
      margin: 30px 0;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: var(--shadow);
      min-height: 600px;
    }
    
    .carousel {
      position: relative;
      overflow: hidden;
      height: 100%;
    }
    
    .carousel-inner {
      display: flex;
      transition: transform 0.6s ease-in-out;
      height: 100%;
    }
    
    .carousel-item {
      min-width: 100%;
      height: 100%;
      position: relative;
    }
    
    .carousel-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    
    .carousel-item:hover img {
      transform: scale(1.05);
    }
    
    .carousel-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
      color: white;
      padding: 30px;
      text-align: center;
    }
    
    .carousel-caption h3 {
      font-size: 2.5rem;
      margin-bottom: 10px;
      color: var(--accent-color);
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .carousel-caption p {
      font-size: 1.2rem;
      max-width: 600px;
      margin: 10px auto;
    }
    
    .carousel-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 20px;
      z-index: 10;
    }
    
    .carousel-control {
      background: rgba(255, 255, 255, 0.8);
      color: var(--header-color);
      border: none;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .carousel-control:hover {
      background: var(--header-color);
      color: white;
      transform: scale(1.1);
    }
    
    .carousel-indicators {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 12px;
      z-index: 10;
    }
    
    .carousel-indicator {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      border: 2px solid transparent;
      cursor: pointer;
      transition: var(--transition);
    }
    
    .carousel-indicator.active {
      background: var(--accent-color);
      transform: scale(1.2);
    }
    
    /* Notícias em destaque */
    .news-highlights {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      margin: 50px 0;
    }
    
    .news-item {
      background: var(--card-bg);
      padding: 25px;
      border-radius: 16px;
      box-shadow: var(--shadow);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(212, 175, 55, 0.2);
      min-height: 280px;
    }
    
    .news-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
      opacity: 0.8;
      transition: var(--transition);
      border-radius: 2px 2px 0 0;
    }
    
    .news-item::after {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: var(--transition);
      z-index: 1;
    }
    
    .news-item:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .news-item:hover::before {
      opacity: 1;
      height: 5px;
      background: linear-gradient(90deg, var(--accent-color), #ffd700, var(--accent-color));
    }
    
    .news-item:hover::after {
      left: 100%;
    }
    
    .news-header {
      display: flex;
      align-items: center;
      margin-bottom: 18px;
      position: relative;
      z-index: 2;
    }
    
    .news-icon {
      font-size: 1.5rem;
      color: var(--accent-color);
      margin-right: 18px;
      width: 80px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(165, 42, 42, 0.1));
      border-radius: 50%;
      box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .news-item:hover .news-icon {
      transform: scale(1.1) rotate(5deg);
      box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
      color: var(--header-color);
    }
    
    .news-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--header-color);
      margin-bottom: 8px;
      letter-spacing: 0.5px;
      position: relative;
    }
    
    .news-title::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 40px;
      height: 2px;
      background: var(--accent-color);
      transition: var(--transition);
    }
    
    .news-item:hover .news-title::after {
      width: 80px;
    }
    
    .news-content {
      flex: 1; 
      display: flex;
      flex-direction: column;
    }
    
    .news-description {
      color: var(--text-color);
      line-height: 1.6;
      font-size: 1.05rem;
    }
    
    .news-date {
      margin-top: auto;
      font-size: 0.9rem;
      color: var(--light-text);
      display: flex;
      align-items: center;
      gap: 8px;
      padding-top: 15px;
      border-top: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    /* Efeito de brilho sutil no hover */
    .news-glow {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 16px;
      box-shadow: 0 0 0 rgba(212, 175, 55, 0);
      transition: var(--transition);
      pointer-events: none;
    }
    
    .news-item:hover .news-glow {
      box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    }
    
    /* Grid de receitas moderno */
    .receitas {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 35px;
      margin: 50px 0;
    }
    
    .card {
      background: var(--card-bg);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .card-image {
      height: 280px;
      overflow: hidden;
      position: relative;
    }
    
    .card-image img {
      width: 100%;
      height: 105%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    
    .card:hover .card-image img {
      transform: scale(1.1);
    }

    .card-delete {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.card-delete:hover {
    background: #c0392b;
    transform: scale(1.1);
}
    
    
    .card-content {
      padding: 25px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .card h2 {
      font-size: 1.8rem;
      color: var(--header-color);
      margin-bottom: 15px;
      line-height: 1.3;
      font-weight: 700;
    }
    
    .card p {
      color: var(--light-text);
      margin-bottom: 20px;
      flex: 1;
    }
    
    .card-meta {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
      font-size: 0.9rem;
    }
    
    .card-meta span {
      display: flex;
      align-items: center;
      gap: 5px;
      color: var(--light-text);
    }
    
    .card-meta i {
      color: var(--accent-color);
    }
    
    .card-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
    }
    
    .card-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--header-color);
      font-weight: 600;
      padding: 10px 20px;
      border: 2px solid var(--header-color);
      border-radius: 50px;
      transition: var(--transition);
    }
    
    .card-link:hover {
      background: var(--header-color);
      color: white;
      box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
    }
    
    .card-favorite {
      background: none;
      border: none;
      color: #ccc;
      font-size: 1.5rem;
      cursor: pointer;
      transition: var(--transition);
    }
    
    .card-favorite:hover,
    .card-favorite.active {
      color: var(--favorite-color);
    }
    
    /* Estado vazio para favoritos */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: var(--shadow);
      margin: 40px 0;
    }
    
    .empty-state i {
      font-size: 4rem;
      color: var(--light-text);
      margin-bottom: 20px;
    }
    
    .empty-state h2 {
      font-size: 1.8rem;
      color: var(--header-color);
      margin-bottom: 15px;
    }
    
    .empty-state p {
      color: var(--light-text);
      max-width: 500px;
      margin: 0 auto 30px;
    }
    
    /* Classificados modernos */
    .classifieds {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin: 50px 0;
    }
    
    .classified-item {
      background: var(--card-bg);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    
    .classified-item:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .classified-image {
      height: 200px;
      overflow: hidden;
      position: relative;
    }
    
    .classified-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    
    .classified-item:hover .classified-image img {
      transform: scale(1.1);
    }
    
    .classified-badge {
      position: absolute;
      top: 15px;
      right: 15px;
      background: var(--accent-color);
      color: white;
      padding: 6px 12px;
      border-radius: 30px;
      font-weight: 600;
      font-size: 0.8rem;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .classified-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .classified-item h3 {
      font-size: 1.4rem;
      color: var(--header-color);
      margin-bottom: 10px;
      font-weight: 700;
    }
    
    .classified-meta {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
      font-size: 0.9rem;
    }
    
    .classified-meta span {
      display: flex;
      align-items: center;
      gap: 5px;
      color: var(--light-text);
    }
    
    .classified-meta i {
      color: var(--accent-color);
    }
    
    .classified-description {
      color: var(--light-text);
      margin-bottom: 20px;
      flex: 1;
    }
    
    .classified-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
    }
    
    .classified-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--header-color);
      font-weight: 600;
      padding: 8px 16px;
      border: 2px solid var(--header-color);
      border-radius: 50px;
      transition: var(--transition);
      font-size: 0.9rem;
    }
    
    .classified-link:hover {
      background: var(--header-color);
      color: white;
      box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
    }
  
    /* Seção de título para os classificados */
    .section-title {
      text-align: center;
      margin: 60px 0 30px;
      position: relative;
      padding-bottom: 15px;
    }
    
    .section-title h2 {
      font-size: 2.2rem;
      color: var(--header-color);
      margin-bottom: 10px;
    }
    
    .section-title p {
      color: var(--light-text);
      max-width: 600px;
      margin: 0 auto;
    }
    
    .section-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background: var(--accent-color);
    }


    /* ===== SEÇÕES DE CATEGORIA ===== */
.category-section {
    margin: 60px 0 40px;
    position: relative;
}

.category-title {
    font-size: 2.5rem;
    color: var(--header-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.category-title i {
    color: var(--accent-color);
    font-size: 2.2rem;
}

.recipe-count {
    font-size: 1rem;
    color: var(--light-text);
    background: rgba(212, 175, 55, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 600;
}

.empty-category {
    text-align: center;
    padding: 50px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.empty-category i {
    font-size: 4rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.empty-category h3 {
    font-size: 1.8rem;
    color: var(--header-color);
    margin-bottom: 15px;
}

.empty-category p {
    color: var(--light-text);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== MENSAGENS DE CATEGORIA VAZIA ===== */
.empty-category-message {
    margin: 30px 0;
    animation: fadeIn 0.5s ease;
}

.empty-category-message .empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px dashed rgba(212, 175, 55, 0.3);
}

.empty-category-message .empty-state i {
    font-size: 3.5rem;
    color: var(--light-text);
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-category-message .empty-state h3 {
    font-size: 1.5rem;
    color: var(--header-color);
    margin-bottom: 10px;
}

.empty-category-message .empty-state p {
    color: var(--light-text);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}
    
    /* Anúncio estilizado */
    .advertisement {
      background: linear-gradient(135deg, var(--header-color), #8b0000);
      color: white;
      padding: 40px;
      border-radius: 5px;
      text-align: center;
      margin: 50px 0;
      position: relative;
      overflow: hidden;
    }
    
    .advertisement::before {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
      transform: rotate(30deg);
    }
    
    .advertisement h2 {
      font-size: 2.2rem;
      margin-bottom: 15px;
      position: relative;
      z-index: 1;
    }
    
    .advertisement p {
      font-size: 1.2rem;
      max-width: 700px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
    
    .advertisement .btn {
      display: inline-block;
      margin-top: 20px;
      padding: 12px 30px;
      background: var(--accent-color);
      color: var(--header-color);
      text-decoration: none;
      font-weight: 600;
      border-radius: 50px;
      transition: var(--transition);
      position: relative;
      z-index: 1;
    }
    
    .advertisement .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    /* Rodapé moderno */
    .newspaper-footer {
      text-align: center;
      margin-top: 80px;
      padding-top: 40px;
      border-top: 2px solid var(--border-color);
      color: var(--light-text);
      position: relative;
    }
    
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      text-align: left;
      margin-bottom: 40px;
    }
    
    .footer-column h3 {
      color: var(--header-color);
      margin-bottom: 20px;
      font-size: 1.4rem;
    }
    
    .footer-column ul {
      list-style: none;
    }
    
    .footer-column ul li {
      margin-bottom: 12px;
    }
    
    .footer-column a {
      color: var(--light-text);
      text-decoration: none;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .footer-column a:hover {
      color: var(--header-color);
    }
    
    .footer-bottom {
      padding: 20px 0;
      border-top: 1px solid #eee;
    }
    
    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin: 20px 0;
    }
    
    .social-links a {
      display: flex;
      align-items: center;
      text-decoration: none;
      justify-content: center;
      width: 45px;
      height: 45px;
      background: var(--header-color);
      color: white;
      border-radius: 50%;
      font-size: 1.2rem;
      transition: var(--transition);
    }
    
    .social-links a:hover {
      transform: translateY(-5px);
      background: var(--accent-color);
      color: var(--header-color);
    }
    
    /* Animações */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .card, .news-item, .classified-item {
      animation: fadeIn 0.6s ease forwards;
    }
    
    .card:nth-child(2) { animation-delay: 0.1s; }
    .card:nth-child(3) { animation-delay: 0.2s; }
    .card:nth-child(4) { animation-delay: 0.3s; }
    .card:nth-child(5) { animation-delay: 0.4s; }
    .card:nth-child(6) { animation-delay: 0.5s; }
    
    /* Efeito de flutuação */
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    
    .advertisement {
      animation: float 6s ease-in-out infinite;
    }
    
    /* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content-user {
  background: var(--card-bg);
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 40%;
  box-shadow: var(--shadow);
  position: relative;
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
}

.modal-content-user .modal-header {
  background: linear-gradient(135deg, var(--header-color), #8b0000);
  color: white;
  padding: 20px 30px;
  position: relative;
  margin-bottom: 0;
}

.modal-content-user .modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-content-user .modal-header h2 i {
  color: var(--accent-color);
}

.modal-content-user .close-user-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-content-user .close-user-modal:hover {
  transform: rotate(90deg);
}

.modal-content-user .modal-body {
  padding: 30px 30px 0;
}
    


    @keyframes modalFadeIn {
      from { opacity: 0; transform: translateY(-50px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }


    .close {
      position: absolute;
      top: 20px;
      right: 25px;
      font-size: 1.8rem;
      cursor: pointer;
      color: white;
      transition: var(--transition);
    }

    .close:hover {
      color: var(--accent-color);
         transform: rotate(90deg);

    }

    .form-input {
  padding: 11px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 5px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--header-color);
}

.form-input[readonly] {
  background-color: #f5f5f5;
  color: #666;
}

.user-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


.modal-content-user .form-input {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid rgba(165, 42, 42, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background-color: rgba(212, 175, 55, 0.05);
  margin-top: 8px;
}

.modal-content-user .form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.modal-content-user .form-input[readonly] {
  background-color: rgba(212, 175, 55, 0.1);
  color: #666;
  cursor: not-allowed;
  border-color: rgba(165, 42, 42, 0.1);
}

.modal-content-user select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a52a2a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.modal-content-user label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--header-color);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.modal-content-user label i {
  color: var(--accent-color);
  width: 16px;
}

.modal-content-user #userEditMessage {
  margin: 10px 0;
  padding: 12px 15px 0;
  border-radius: 8px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content-user #userEditMessage.success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #27ae60;
}

.modal-content-user #userEditMessage.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* Botões do modal de usuário */
.modal-content-user .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding-top: 15px;
  margin-top: 20px;
  margin-bottom: 25px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-content-user .btn {
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
}

.modal-content-user .btn-secondary {
  background: #f2f2f2;
  color: var(--text-color);
}

.modal-content-user .btn-secondary:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-content-user .btn-primary {
  background: linear-gradient(135deg, var(--header-color), #8b0000);
  color: white;
}

.modal-content-user .btn-primary:hover {
  background: linear-gradient(135deg, #8b0000, var(--header-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
}

    .user-info-item {
      background: rgba(212, 175, 55, 0.05);
      padding: 15px;
      border-radius: 10px;
      border-left: 3px solid var(--accent-color);
    }

    .user-info-item strong {
      display: block;
      color: var(--header-color);
      margin-bottom: 5px;
      font-size: 0.9rem;
    }

    .user-info-item p {
      margin: 0;
      color: var(--text-color);
      font-size: 1.1rem;
      word-break: break-word;
    }

    .user-status {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      border-radius: 50px;
      background: rgba(212, 175, 55, 0.1);
      margin-top: 15px;
      font-weight: 600;
    }

    .status-active {
      color: #2ecc71;
    }

    .status-inactive {
      color: #e74c3c;
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 15px;
      margin-top: 25px;
      padding-top: 20px;
      border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    /* Modal de Login Atualizado */
.login-modal .modal-content-login {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    margin: 5% auto;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

.login-modal .modal-header-login {
    background: linear-gradient(135deg, var(--header-color), #8b0000);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.login-modal .modal-header-login h2 {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-modal .modal-header-login h2 i {
    color: var(--accent-color);
}

.login-modal .close-login-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.login-modal .close-login-modal:hover {
    transform: rotate(90deg);
}

.login-modal .modal-body-login {
    padding: 30px;
}

.login-modal {
    text-align: center;
    margin-bottom: 25px;
}

.login-modal .form-group-login {
    margin-bottom: 20px;
}

.login-modal .form-group-login label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--header-color);
    font-size: 0.95rem;
}

.login-modal .form-group-login label i {
    color: var(--accent-color);
    width: 16px;
}

.login-modal .input-with-icon {
    position: relative;
}

.login-modal .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.1rem;
}

.login-modal .form-control-login {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid rgba(165, 42, 42, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: rgba(212, 175, 55, 0.05);
}

.login-modal .form-control-login:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.login-modal .form-control-login::placeholder {
    color: var(--light-text);
    opacity: 0.7;
}

.login-modal .login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 25px;
    font-size: 0.9rem;
}

.login-modal .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    cursor: pointer;
}

.login-modal .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--header-color);
    cursor: pointer;
}

.login-modal .forgot-password {
    color: var(--header-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-modal .forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-modal .login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--header-color), #8b0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
}

.login-modal .login-button:hover {
    background: linear-gradient(135deg, #8b0000, var(--header-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(165, 42, 42, 0.4);
}

.login-modal .login-button:disabled {
    background: var(--light-text);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-modal .register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--light-text);
    font-size: 0.95rem;
}

.login-modal .register-link a {
    color: var(--header-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition);
}

.login-modal .register-link a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Notificação de erro no login */
.login-modal .login-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.login-modal .login-error i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.login-modal .shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

    /* Modal de Logout */
.logout-modal .modal-content-logout {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  margin: 10% auto;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
}

.logout-modal .modal-header-logout {
  background: linear-gradient(135deg, var(--header-color), #8b0000);
  color: white;
  padding: 20px 30px;
  position: relative;
  margin: -30px -30px 30px -30px;
  border-radius: 16px 16px 0 0;
}

.logout-modal .modal-header-logout h2 {
  margin: 0;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.logout-modal .modal-header-logout h2 i {
  color: var(--accent-color);
}

.logout-modal .modal-icon {
  font-size: 4rem;
  color: var(--header-color);
  margin: 20px 0;
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

.logout-modal .modal-message {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 20px 0;
  padding: 0 10px;
}

.logout-modal .modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.logout-modal .modal-button {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
}

.logout-modal .modal-button.cancel {
  background: #f2f2f2;
  color: var(--text-color);
}

.logout-modal .modal-button.cancel:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logout-modal .modal-button.logout {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.logout-modal .modal-button.logout:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.logout-modal .close-logout-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.logout-modal .close-logout-modal:hover {
  transform: rotate(90deg);
}


/* Modal de Exclusão de Receita */
.delete-modal .modal-content-delete {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  margin: 10% auto;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
  z-index: 2002; 
}

.delete-modal .modal-header-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px 30px;
    position: relative;
    margin: -30px -30px 20px -30px;
    border-radius: 16px 16px 0 0;
}

.delete-modal .modal-header-delete h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}


.delete-modal .modal-message {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px 0;
    padding: 0 10px;
}

.delete-modal .recipe-name {
    color: var(--header-color);
    font-weight: 700;
    font-style: italic;
    font-size: 1.2rem;
    display: block;
    margin: 10px 0;
    padding: 8px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.delete-modal .modal-warning {
    color: #e74c3c;
    font-size: 0.95rem;
    margin: 15px 0;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
    text-align: left;
}

.delete-modal .modal-warning i {
    color: #e74c3c;
    margin-right: 8px;
}

.delete-modal .modal-actions-delete {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.delete-modal .modal-button-delete {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.delete-modal .modal-button-delete.cancel {
    background: #f2f2f2;
    color: var(--text-color);
}

.delete-modal .modal-button-delete.cancel:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.delete-modal .modal-button-delete.confirm {
    background: #e74c3c;
    color: white;
}

.delete-modal .modal-button-delete.confirm:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.delete-modal .close-delete-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.delete-modal .close-delete-modal:hover {
    transform: rotate(90deg);
}

    .btn {
      padding: 12px 25px;
      border-radius: 50px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      border: none;
      margin-right: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .btn-primary {
      background: var(--header-color);
      color: white;
    }

    .btn-primary:hover {
      background: #8b0000;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
    }

    .btn-secondary {
      background: transparent;
      color: var(--light-text);
      border: 1px solid var(--light-text);
    }

    .btn-secondary:hover {
      background: var(--light-text);
      color: white;
    }

    .form-group {
      display: flex;
      flex-direction: column;
    }


    .form-group label {
      display: block;
      margin-bottom: 8px;
      margin-top: 1%;
      font-weight: 600;
      color: var(--header-color);
    }

    .form-group input {
      width: 100%;
      padding: 12px;
      margin-bottom: 20px;
      border: 2px solid var(--border-color);
      border-radius: 8px;
      font-size: 1rem;
      transition: var(--transition);
    }

    .form-group input:focus {
      outline: none;
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    }

    .login-btn {
      width: 100%;
      padding: 12px;
      background: var(--header-color);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      margin-top: 2%;
      transition: var(--transition);
    }

    .login-btn:hover {
      background: #8b0000;
      transform: translateY(-2px);
    }

    .message {
      margin-top: 15px;
      padding: 10px;
      border-radius: 5px;
      text-align: center;
    }

    .message.success {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }

    .message.error {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    .user-name {
      text-align: center;
      font-size: 1rem;
      margin-top: 10px;
      font-weight: bold;
      color: var(--card-bg);
    }

     .recipe-filters {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
  }

  .recipe-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    border-radius: 2px 2px 0 0;
  }

  .recipe-filters h3 {
    font-size: 1.5rem;
    color: var(--header-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .recipe-filters h3 i {
    color: var(--accent-color);
  }

  #filterForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .filter-group {
    position: relative;
  }

  .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--header-color);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .filter-group label i {
    color: var(--accent-color);
    width: 16px;
  }

  .filter-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid rgba(165, 42, 42, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(212, 175, 55, 0.05);
  }

  .filter-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  }

  .filter-group input::placeholder {
    color: var(--light-text);
    opacity: 0.7;
  }

  .filter-icon {
    position: absolute;
    left: 15px;
    top: 48px;
    color: var(--accent-color);
  }

  .filter-buttons {
  grid-column: 1 / -1;
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid rgba(165, 42, 42, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(212, 175, 55, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a52a2a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.filter-select option {
    padding: 10px;
}


  #filterForm button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
  }

  #aplicarFiltros {
    background: var(--header-color);
    color: white;
  }

  #aplicarFiltros:hover {
    background: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
  }

  #limparFiltros {
    background: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
  }

  #limparFiltros:hover {
    background: var(--light-text);
    color: white;
  }


/* Spinner de Carregamento */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--spining-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(165, 42, 42, 0.2);
    border-radius: 50%;
    border-top-color: var(--header-color);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--header-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.loader-subtext {
    color: var(--light-text);
    margin-top: 5px;
    font-size: 0.9rem;
}

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

/* Versão reduzida para telas menores */
@media (max-width: 768px) {
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .loader-text {
        font-size: 1rem;
    }
}

/* ===== ESTILOS PARA CATEGORIAS ===== */
.categoria-doce {
    background: var(--categoria-doce-bg);
    color: var(--categoria-doce-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--categoria-doce-border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.categoria-salgado {
    background: var(--categoria-salgado-bg);
    color: var(--categoria-salgado-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--categoria-salgado-border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.categoria-doce:hover, .categoria-salgado:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.categoria-doce i, .categoria-salgado i {
    font-size: 0.9rem;
}

/* Ajuste no card-meta para incluir a categoria */
.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.card-meta span:not(.categoria-doce):not(.categoria-salgado) {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-text);
}

.card-meta i:not(.categoria-doce i):not(.categoria-salgado i) {
    color: var(--accent-color);
}