@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #001224;
}

::-webkit-scrollbar-thumb {
    background: #4070f4;
    border-radius: 10px;
}

:root {
    --card-height: 300px;
    --card-width: calc(var(--card-height) / 1.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}

.disabled-btn {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
  background-color: gray !important;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 85px;
    background: #000611;
    color: white;
    padding: 18px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    z-index: 999;
}

.sidebar:hover {
    width: 250px;
}

.sidebar:hover .logo_closed {
    display: none;
}

.sidebar:hover .logo_open {
    display: flex;
    opacity: 1;
    transition: 0.4s ease-in-out;
}

.logo_items {
    gap: 8px;
    transition: 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav_image {
    display: flex;
    width: 50px;
    justify-content: center;
    transition: 0.4s ease-in-out;
}

.logo_closed {
    width: 50px;
    transition: 0.4s ease-in-out;
}

.logo_open {
    opacity: 0;
    display: none;
    width: 150px;
    transition: 0.4s ease-in-out;
}

.menu_container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 30px;
    overflow-y: auto;
    transition: 1s ease-in-out;
}

.menu_container::-webkit-scrollbar {
    display: none;
}

.flex {
    display: flex;
    align-items: center;
}

.item {
    list-style: none;
}

.link {
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 7.5px;
    color: white;
}

.link:hover {
    color: #fff;
    background: linear-gradient(180deg, #13326E, #264FAB, #4077FF);
    animation: animacao_link 0.1s ease-in-out;
}

@keyframes animacao_link {
    0% {
        background: linear-gradient(180deg, #13316e7a, #264eab73, #4076ff6e);
    }

    100% {
        background: linear-gradient(180deg, #13326E, #264FAB, #4077FF);
    }

}

.link span {
    white-space: nowrap;

}

.link i {
    height: 60px;
    min-width: 50px;
    display: flex;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

main {
    margin-left: 85px;
    background: linear-gradient(180deg, #00356d, #00356d, #00438b);
    display: flex;
    flex-direction: column;
    align-items: center;
}


#BANNER_EDICOES {
    display: flex;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(360deg, #001f3f, #00356d);
    box-shadow: 3px 3px 25px black;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

#intro-edicoes {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

.containerEdicoes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 40px;
    width: 1150px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid #0066d3;
    box-shadow: 0px 0px 15px rgba(0, 102, 211, 0.7);
}

h1 {
    color: white;
    text-align: center;
    margin: 10px 0;
    font-size: 35px;
    margin-bottom: 20px;
}

p {
    color: white;
    text-align: left;
    justify-content: left;
    align-items: left;
    margin: 10px 0;
    font-size: 20px;
}

#container2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid #0066d3;
    box-shadow: 0px 0px 15px rgba(0, 102, 211, 0.7);
    border-radius: 15px;
    width: 1000px;
    gap: 25px;
}

#container2 h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 5px;
}

#container2 .titulo p {
    text-align: center;
    font-size: 19px;
    color: white;
}

#container2 p {
    margin: 0 auto;
    color: black;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
}

.edicao {
    background-color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid #0066d3;
}


.info {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.botoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-correção {
    background-color: #1f3d75;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
    transition: 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-ranking {
    background-color: black;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
    transition: 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-correção:hover,
.btn-ranking:hover {
    opacity: 0.9;
}


.regulamento {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid #0066d3;
    box-shadow: 0px 0px 15px rgba(0, 102, 211, 0.7);
    padding: 30px 20px;
    text-align: center;
    color: white;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.regulamento h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 3px;
    color: white;
}

.regulamento h3 {
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
    color: white;
    margin-bottom: 25px;
    margin-top: 0;
}


.btn-download {
    display: inline-block;
    background-color: #00356d;
    color: white;
    padding: 12px 30px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #002c56;
}
#abrirModalBtn {
  background-color: white;
  color: #002c56;
  padding: 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #002c56;
  margin-top: 10px
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-conteudo {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.modal-conteudo h2 {
  margin-bottom: 20px;
    color: #002c56;
}

.modal-conteudo input,
.modal-conteudo button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  font-size: 16px;
  border : 1px solid #002c56;
  padding: 7px;
  border-radius: 6px;
}
.modal-conteudo label {
  margin-bottom: 20px;
}

.modal-conteudo button {
  background-color: #002c56;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.modal-conteudo .fechar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.modal-conteudo .fechar:hover {
  color: black;
}
.btn-editar {
    background-color: #0066d3;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
    transition: 0.2s ease;
    text-decoration: none;
}


.btn-excluir:hover {
  background-color: #c62828;
}
.btn-excluir {
    background-color: red;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
    transition: 0.2s ease;
    text-decoration: none;
}


.btn-excluir:hover {
  background-color: #c62828;
}

.btn-travar{
    background-color: yellow;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
    transition: 0.2s ease;
    text-decoration: none;
}

.btn-liberar{
    background-color: yellow;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
    transition: 0.2s ease;
    text-decoration: none;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: #00438b;
    padding: 20px;
}

footer ul {
    list-style-type: none;
    display: flex;
    gap: 50px;
}

footer ul a {
    text-decoration: none;
    color: white;
}

footer ul a:hover {
    color: #4070f4;
    transition: 0.3s ease-in-out;
}

.footer-linha {
    border: none;
    height: 2px;
    background-color: rgb(0, 166, 255);
    margin: 10px auto;
    width: 70%;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: white;
    color: #002c56;
    border: none;
    border-radius: 50%;
    font-size: 35px;
    cursor: pointer;
    opacity: 0.8;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-90deg);
    padding-bottom: 3px;
    border: 1px solid #002c56;
}

#backToTop:hover {
    opacity: 1;
    transform: scale(1.1) rotate(-90deg);
}

@media screen and (max-width: 1100px) {
    .navbar {
        left: 65%;
    }
}

@media screen and (max-width: 800px) {
    .sidebar {
        left: 0;
        z-index: 1000;
    }

    .sidebar.close {
        left: -100%;
    }

    #sidebar-close {
        display: block;
    }

    #lock-icon {
        display: none;
    }

    .navbar {
        left: 0;
        max-width: 100%;
        transform: translateX(0%);
    }

    #sidebar-open {
        display: block;
    }
}
/* === ESTILO ORIGINAL (sem alterações) === */
/* ... todo seu CSS original vai antes das media queries ... */

/* === MEDIA QUERIES PARA RESPONSIVIDADE === */
@media (max-width: 1200px) {
  .containerEdicoes, #container2 {
    width: 90%;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  main {
    margin-left: 0;
  }

  #intro-edicoes {
    height: auto;
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .containerEdicoes {
    width: 95%;
    padding: 25px;
    margin-top: 20px;
  }

  #container2 {
    width: 95%;
    padding: 20px;
    gap: 20px;
  }

  .edicao {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
  }

  .botoes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .btn-correção,
  .btn-ranking,
  .btn-editar,
  .btn-excluir {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  h1, .regulamento h1 {
    font-size: 26px;
  }

  p,
  .info,
  #container2 p,
  .regulamento h3 {
    font-size: 16px;
  }

  .modal-conteudo {
    width: 90%;
    padding: 20px;
  }

  footer ul {
    flex-direction: column;
    gap: 15px;
  }

  #backToTop {
    width: 45px;
    height: 45px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .btn-correção,
  .btn-ranking,
  .btn-editar,
  .btn-excluir {
    font-size: 13px;
  }

  h1,
  .regulamento h1 {
    font-size: 22px;
  }

  .regulamento h3,
  p,
  .info {
    font-size: 15px;
  }

  .modal-conteudo {
    padding: 15px;
  }

  .modal-conteudo input,
  .modal-conteudo button {
    font-size: 14px;
    padding: 6px;
  }
}

