* {
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

nav {
  background: #b736ff;
  display: flex;
  padding: 24px 30px;
  margin-top: 10px;
}

nav ul {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul li {
  margin-bottom: 0 !important;
}

nav a {
  color: white;
  font-size: 16px;
  text-decoration: none;
}

nav a.active {
  font-weight: bold;
}

h1 {
  font-weight: bold;
  font-size: 20px;
  color: #000000;
  margin: 0;
}

h2 {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  margin: 0;
  padding: 0px 33px 0px 33px;
}

button,
.button {
  background: #ffffff;
  border: 1px solid #03a8d8;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #03a8d8;
  padding: 10px 21px;
  text-decoration: none;
}

.create-new-topic-button {
  margin: 0 auto;
  display: block;
  width: 182px;
}

section {
  padding: 20px 16px;
}

input,
select {
  background: #ffffff;
  border: 1px solid #979797;
  border-radius: 3px;
  padding: 8px 10px;
  width: 100%;
  margin-bottom: 16px;
}

select:invalid,
input::placeholder {
  color: #979797;
  opacity: 1;
}

.form-section {
  padding-top: 20px;
  padding-bottom: 30px;
}

.center {
  display: block;
  margin: 0 auto;
  text-align: center;
}

section > h1 {
  margin: 0;
  margin-bottom: 20px;
  text-align: center;
}

.actions-container {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
}

.card-front-back {
  padding-top: 25px;
}

.remove-card-button {
  color: #03a8d8;
  text-align: right;
  font-weight: bold;
  font-size: 12px;
  margin-left: auto;
  display: block;
  border: none;
  padding: unset;
  margin-top: -8px;
}

option {
  text-transform: capitalize;
}

.topics-list {
  list-style: none;
  padding: 0;
}

.topic {
  background: #ffffff;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  padding: 26px 20px;
}

.topic-container {
  display: flex;
}

.topic img {
  width: 40px;
  margin-right: 14px;
}

.text-content > * {
  margin: 0;
}

.topic-link {
  text-decoration: none;
  color: #000000;
}

.text-content > p {
  font-size: 14px;
}

li:not(:last-child) {
  margin-bottom: 20px;
}

.topic-icon {
  width: 40px;
  display: block;
  margin: 0 auto;
}

.quizzes-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
}

.quiz {
  font-weight: bold;
  font-size: 14px;
  color: #000000;
  padding: 25px 6px;
  background: #ffffff;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  width: 88px;
  text-align: center;
  margin: 0 !important;
  text-decoration: none;
}

.quiz > a {
  text-decoration: none;
  color: #000000;
}

.cards-list {
  list-style: none;
  padding: 0;
}

.card {
  background: #b736ff;
  border-radius: 4px;
  border: none;
  color: white;
  padding: 73px 44px;
  width: 100%;
}
p {
  padding: 0px 10px;
  font-size: 12px;
  text-align: justify;
}



/* Añade esto a tu archivo CSS principal o crea un nuevo archivo App.css */

/* Estructura general */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 300px;
  background: #2c3e50;
  color: white;
  padding: 20px;
  position: fixed;
  height: 100%;
  overflow-y: auto;
}

.main-content {
  margin-left: 300px; /* Igual al ancho del sidebar */
  flex: 1;
  padding: 20px;
  background: #f5f7fa;
}

/* Tarjetas */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Topics */
.topic-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Topics */
.topic-container {
max-width: 100%;
margin: 0 auto;
}

.topic-header {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 30px;
}

.topic-icon {
width: 60px;
height: 60px;
}

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

.quiz-card {
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
transition: all 0.3s ease;
}

.quiz-card:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quiz-card h3 {
margin: 0 0 10px 0;
color: #2c3e50;
}

/* Botones */
.button {
display: inline-block;
padding: 10px 20px;
background: #3498db;
color: white;
border-radius: 4px;
text-decoration: none;
transition: background 0.3s;
}

.button:hover {
background: #2980b9;
}

.button.primary {
background: #2ecc71;
}

.button.primary:hover {
background: #27ae60;
}

/* Sidebar Titles */
.sidebar-title {
color: white;
padding: 15px 0;
margin: 0;
border-bottom: 1px solid #34495e;
}

/* Navigation Groups */
.nav-group {
margin-bottom: 15px;
}

.nav-header {
color: #ecf0f1;
font-weight: bold;
padding: 0px 0px;
text-transform: uppercase;
font-size: 20px;
letter-spacing: 1px;
}

/* Submenu Styles */
.nav-submenu {
list-style: none;
padding: 0 0 0 15px;
margin: 0;
display: flex;
flex-direction: column;
gap: 10px;
}

.nav-submenu .nav-link {
padding: 0px 0px 0px 0px !important;
font-size: 14px;
}

/* Active State */
.nav-submenu .nav-link.active {
background-color: rgba(52, 152, 219, 0.3);
border-left: 3px solid #3498db;
}

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

.topic-content-wrapper {
  flex: 1;
  max-width: 350px;
}

.h2-topics {
  color: black;
  word-break: break-word; /* Rompe palabras largas */
  overflow: hidden;
}

.p-topics {
  padding-left: 33px;
}

.buttons-topics {
  display: flex;
  margin-left: 200px;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.button-topics {
  background-color: #3498db;
  color: white;
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.delete-button-topics {
  background-color: red;
  color: white;
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

/*a partir de aca, necesito 15 styles*/

.section-NewQuizForm {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.h1-NewQuizForm {
  margin-bottom: 20px;
}

.div1-NewQuizForm {
  margin-bottom: 15px;
}

.input1-NewQuizForm {
  width: 100%;
  padding: 8px;
}

.div2-NewQuizForm {
  margin-bottom: 15px;
}

.select1-NewQuizForm {
  width: 100%;
  padding: 8px;
}

.div3-NewQuizForm {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.div4-NewQuizForm {
  margin-bottom: 10px;
}

.input2-NewQuizForm {
  width: 100%;
  padding: 8px;
}

.div5-NewQuizForm {
  margin-bottom: 10px;
}

.input3-NewQuizForm {
  width: 100%;
  padding: 8px;
}

.button1-NewQuizForm {
  background-color: #ff4444;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
}

.div6-NewQuizForm {
  margin: 20px 0;
}

.button2-NewQuizForm {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 3px;
  margin-right: 10px;
}

.button3-NewQuizForm {
  background-color: #2196F3;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 3px;
}

.div1-quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button1-quiz {
  margin-top: 5px;
}

.button2-quiz {
  margin-top: 20px;
  background-color: red;
  color: white;
}

.import-export-buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-button, .export-button {
  padding: 8px 12px;
  background: #4a6fa5;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.import-button:hover, .export-button:hover {
  background: #3a5a8f;
}

#import-file {
  display: none;
}

.delete-button-ImportExport {
  background: #ff4444;
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

/* Media Query para pantallas pequeñas (menos de 768px) */
@media (max-width: 768px) {

  /* Estructura general */
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }

  .sidebar nav {
    width: 100%;
  }

  .sidebar nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .sidebar .nav-group {
    margin-bottom: 0;
  }

  .nav-header{
    text-align: center;
    padding-bottom: 10px;
  }

  .nav-submenu {
    flex-direction: row;
    gap: 15px;
    padding: 0;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .topic-header1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px; /* Espaciado suave entre ícono, título y cantidad */
    margin-bottom: 20px;
  }

  .topic-icon1 {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }

  .h2-topics {
    word-break: break-word; /* Rompe palabras largas */
    overflow: hidden;
    max-width: 120%; /* Asegura que respete el ancho del contenedor */
    padding: 0;
  }

  .quiz-count1 {
    font-size: 10px;
    color: #555;
  }

  .quiz-grid1 {
    grid-template-columns: 1.5fr;
    padding: 0 26px;
  }

  .quiz-card1 {
    margin: 0 auto;
    font-size: 10px;
  }

  .actions1 {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    padding: 0 16px;
  }

  .button1 {
    width: 100%;
    max-width: 250px;
    max-height: 80px;
    font-size: 14px;
  }

  .topic-container1 {
    overflow-x: hidden;
  }

  .import-export-buttons {
    display: flex;
    flex-direction: row; /* Coloca los botones en fila */
    flex-wrap: wrap; /* Permite que se ajusten si no caben */
    gap: 8px; /* Espacio entre botones */
    align-items: center;
    justify-content: center;
  }

  .export-button,
  .import-button,
  .delete-button-ImportExport {
    flex: 1; /* Hace que los botones crezcan equitativamente */
    min-width: 120px; /* Ancho mínimo para mantener legibilidad */
    padding: 8px 5px; /* Ajuste de padding para pantallas pequeñas */
    font-size: 14px; /* Tamaño de fuente reducido */
  }
}