body {
      font-family: "Segoe UI", Roboto, sans-serif;
      background-color: #f7f8fa;
      color: #333;
      margin: 0;
      padding: 0;
      padding-bottom:60px;
      user-select: none;
    }

    header {
      background: #ffffff;
      padding: 20px 40px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      /* display: flex;
      justify-content: space-between;
      align-items: center; */
      position: sticky;
      top: 0;
      z-index: 10;
    }

    header h1 {
      font-size: 1.4em;
      font-weight: 600;
      color: #2d2d2d;
      margin: 0;
    }

  .c_oculto{
    display: none;
  }

    .c_main {
      /* text-align: center; */
      padding: 60px 20px;
      max-width: 900px;
      margin: 0 auto;
    }

    /* Título geral */
  .c_titulo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin: 0px 0;
  }

    .titulo-principal {
      font-size: 2.2em;
      font-weight: 700;
      margin-bottom: 20px;
      color: #1e1e1e;
    }

    .btn-criar {
      background: #2563eb;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 14px 28px;
      font-size: 1.1em;
      cursor: pointer;
      transition: 0.2s;
      min-width: 150px;
        width: auto;
      text-wrap:nowrap;
    }

    .btn-criar:hover {
      background: #1d4ed8;
    }

    section {
      /* margin-top: 60px; */
      text-align: left;
    }

    section h2 {
      font-size: 1.5em;
      color: #222;
      margin-bottom: 20px;
      text-align: center;
    }

    .rifas-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }

    .rifa-card {
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
    }

    .rifa-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .rifa-card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }

    .rifa-card .conteudo {
      padding: 15px;
    }

    .rifa-card h3 {
      margin: 0 0 8px;
      font-size: 1.1em;
      color: #222;
    }

    .rifa-card p {
      font-size: 0.9em;
      color: #555;
      margin: 0 0 10px;
    }

    .rifa-card .info {
      font-size: 0.85em;
      color: #666;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    footer {
      text-align: center;
      font-size: 0.85em;
      color: #777;
      margin: 0px;
      padding: 10px 0px;
      position: fixed;
      width: 100%;
      bottom: 0px;
      left: 0px;
      background-color:#fff;
      z-index:1;
    }

    @media (max-width: 600px) {
      .titulo-principal {
        font-size: 1.8em;
      }
    }

.c_maxw600{
  max-width: 600px!important;
}
.c_left{
    text-align:left!important;
}
.c_right{
    text-align:right!important;
}
.c_center{
    text-align:center!important;
}


/* Formulario  */
/* ================================================
   FORMULÁRIOS - ESTILO MODERNO E RESPONSIVO
   ================================================ */
.c_form {
  margin: 0 auto;
  max-width: 100%;
  padding: 10px 15px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
}

/* ---------- FIELDSET ---------- */
.c_fieldset,
.c_form fieldset {
  padding: 15px 20px;
  margin: 10px 0 25px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.c_form fieldset legend {
  font-weight: 600;
  color: #055daa;
  padding: 0 10px;
  font-size: 1rem;
}

.c_fieldset_hidden {
  border: none !important;
}

.c_fieldset_hidden legend {
  display: none;
}

/* ---------- INPUTS E COLUNAS ---------- */
.c_input {
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
  position: relative;
}

.c_input label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Larguras proporcionais */
.c_col0 {
  display: none;
}
.c_col1 {
  /* width: 16%; */
  width: calc(100% / 6 * 1 - 4px);
}
.c_col2 {
  /* width: 33%; */
  width: calc(100% / 6 * 2 - 3px);
}
.c_col3 {
  width: calc(100% / 6 * 3 - 3px);
}
.c_col4 {
  /* width: 66%; */
  width: calc(100% / 6 * 4 - 3px);
}
.c_col5 {
  /* width: 83%; */
  width: calc(100% / 6 * 5 - 3px);
}
.c_col6 {
  /* width: 100%; */
  width: calc(100% / 6 * 6 - 3px);
}
.c_colmin {
  width: auto;
  margin: 0 5px;
}

/* ---------- CAMPOS DE FORMULÁRIO ---------- */
.c_form_input,
.c_form input[type="text"],
.c_form input[type="password"],
.c_form input[type="date"],
.c_form input[type="time"],
.c_form input[type="datetime-local"],
.c_form input[type="email"],
.c_form input[type="tel"],
.c_form input[type="number"],
.c_form textarea,
.c_form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.c_form textarea {
  resize: vertical;
  min-height: 70px;
}

/* ---------- FOCUS ---------- */
.c_form input:focus,
.c_form textarea:focus,
.c_form select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
  outline: none;
}

/* ---------- BOTÕES ---------- */
.c_form input[type="submit"],
.c_form input[type="button"],
.c_form button,
.bt {
  /* display: inline-block; */
  /* background-color: #828a91; */
  /* color: #222; */
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}
.btdisabled{
    display: none!important;
}

.c_form input[type="submit"]:hover,
.c_form input[type="button"]:hover,
.c_form button:hover,
.bt:hover {
  background: #004b8d;
}

.bt_salvar,
.bg_verde {
  background: #28a745;
  color: #fff;
}

.bt_salvar:hover {
  background-color: #218838;
}

.bt_excluir,
.bg_vermelho{
  background: #dc3545;
  color:#fff;
}

.bg_red{
  background: #dc3545;
}

.bt_excluir:hover {
  background: #b02a37;
}

.bt_redefinir,
.bg_cinza {
  background: #6c757d;
  color:#fff;
}

.bt_redefinir:hover {
  background: #565e64;
}

.c_botoes {
  width: auto;
  padding: 10px;
  margin: 0px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- OUTROS ---------- */
.c_max800 {
  max-width: 800px;
}

.c_max1000 {
  max-width: 1000px;
}

.c_editor {
  min-height: 600px;
  display: none;
}

/* ---------- MOBILE ---------- */
@media screen and (max-width: 768px) {
   .c_main {
      text-align: center;
      padding: 0px;
      width: 100%;
      max-width: auto;
      margin: 0px;
      border: 0px red solid;
      /* background-color: #007bff; */
    }
  .c_fieldset,
  .c_form fieldset {
    max-width: auto;
    width: auto;
    margin: 0px;
    /* padding: 0px; */
    border: 0px!important;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  }

  .c_form fieldset legend {
    text-align: center;
    font-size: 1rem;
    color: #555;
  }

  .c_input,
  .c_col1,
  .c_col2,
  .c_col3,
  .c_col4,
  .c_col5,
  .c_col6 {
    width: 100% !important;
  }

  .c_input label {
    font-size: 0.85rem;
    color: #666;
  }

  .c_form input[type="text"],
  .c_form input[type="password"],
  .c_form input[type="date"],
  .c_form input[type="email"],
  .c_form input[type="tel"],
  .c_form input[type="number"],
  .c_form textarea,
  .c_form select {
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px;
  }

  .c_form input[type="button"],
  /* .btdisabled, */
  .bt {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .c_botoes {
        position: fixed;
        bottom: 0px;
        left: 0px;
        width: 100%;
        background: #fff;
        margin: 0px;
        /* padding: 10px 10px 16px 10px; */
        /* box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1); */
        border-top: 1px solid #ccc;
        z-index: 1000;
    }

    .c_botoes button,
    .c_botoes input[type="button"],
    .c_botoes input[type="submit"] {
        margin-bottom: 3px;
        min-width: 100px;
        width: auto;
        height: 40px;
        font-size: 16px;
        border-radius: 6px;
    }

    /* Adiciona espaçamento inferior no formulário
       para evitar que o conteúdo fique escondido atrás dos botões */
    .c_form {
        /* padding-bottom: 80px; */
    }
}

.c_ico{
  font-size: 0.8em; 
  padding: 15px; 
  border-radius: 10px;
}
.bg_azul{
  background-color: #007bff; 
  color:#fff;
}
.verde{
  color: #16a34a;
}
.c_sucesso{
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 100%;
  font-size: 1.3em;
  font-weight: normal;
  padding: 20px;
}
.c_selecionavel {
    user-select: text;
}
