.document-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #000;
  padding: 15px 20px;
  margin: 30px auto;
  border-radius: 16px;
  border: 1px solid #222;
  color: #fff;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
  gap: 20px;
  width: 70%;
}

.document-date {
  white-space: nowrap;
  flex: 1 1 auto;
}

.documents-category {
  font-size: 1.2em;
  color: #ffffff;
  flex: 1 1 auto;
}

.document-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffbb00;
  flex: 2 1 auto;
}

.document-description {
  flex: 3 1 auto;
  min-width: 200px;
}

button {
  padding: 8px 12px;
  border: 1px solid black;
  cursor: pointer;
  border-radius: 7px;
  font-size: 0.9em;
  transition: 0.2s;
}

button.delete-btn {
  background-color: #f44336;
  color: #fff;
}

button.delete-btn:hover {
  background-color: #440a09;
  border: 1px solid #f44336;
}

@media (max-width: 1230px) {
  .document-card {
    flex-direction: column;
  }

  .document-description {
    min-width: 100%;
  }
}

#quizzes {
  padding: 20px;
}

#quizzes h2 {
  color: #faca2a;
  text-transform: uppercase;
}

.alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  pointer-events: none;
}

.alert {
  padding: 20px;
  color: white;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 16px;
  max-width: 400px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  text-align: center;
  position: relative;
}

.alert.success {
  background-color: #04aa6d;
}
.alert.info {
  background-color: #2196f3;
}
.alert.warning {
  background-color: #ff9800;
}
.alert.danger {
  background-color: #f44336;
}

.closebtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.closebtn:hover {
  color: black;
}
