@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("./colors.css");

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
*:not(i) {
  font-family: Roboto;
}

.d-flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.opacity-0 {
  opacity: 0;
}

.actions {
  gap: 10px;
  display: flex;
}

.btn-primary {
  padding: 5px 105px;
  border-radius: 4px;
  background: var(--primary-color);
  cursor: pointer;
  color: var(--primary-contrast);
  border: 1px solid var(--primary-color);
  font-size: 14px;
}

.btn-primary:hover {
  background: var(--primary-color);
  transition: ease 0.3s;
}

.form-group {
  font-size: 12px;
  margin-left: 60px;
  margin-right: 60px;
}

.matricula {
  padding: 10px 50px;
  border-radius: 4px;
  background: #f1f1f1;
  border: 1px solid #dbdbdb;
}

.matricula::placeholder {
  font-size: 12px;
  color: var(--primary-color);
}

.container-bottom {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.gap-10 {
  gap: 10px;
}

.gap-30 {
  gap: 30px;
}

.justify-center {
  justify-content: center;
}

.dir-column {
  flex-direction: column;
}

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

.txt-small {
  font-size: 16px;
}

.txt-medium {
  font-size: 12px;
}

.txt-mdLarge {
  font-size: 18px;
}

.txt-large {
  font-size: 24px;
}

.txt-largest {
  font-size: 30px;
}

.txt-green {
  color: var(--primary-color);
}

.txt-white {
  color: var(--primary-contrast);
}

.background-green {
  background: var(--primary-color);
}

.background-white {
  background: var(--primary-contrast);
}

.background-lightgray {
  background: #ececec;
}

.background-gray {
  background: #a6a6a6;
}

.background-darkgray {
  background: #616161;
}

.border-green {
  border-color: var(--primary-color);
}

.border-lightgray {
  border-color: #ececec;
}

.border-gray {
  border-color: #a6a6a6;
}

.border-darkgray {
  border-color: #616161;
}

.background-blur {
  padding: 5px;
}

.background-text {
  background-color: var(--primary-color);
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 8px;
}

.title-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  padding: 10px;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 8px;
  color: var(--primary-contrast);
}

thead {
  margin-left: 60px;
  margin-right: 60px;
}

th {
  color: var(--primary-color);
  margin-left: 60px;
  margin-right: 60px;
}

tr {
  gap: 30px;
  color: var(--primary-color);
  margin-left: 60px;
  margin-right: 60px;
}

.title-section {
  display: flex;
  gap: 20px;
}

tr td {
  padding: 10px;
}

tr:nth-child(even) {
  background-color: var(--row-alt);
}

span.tag {
  padding: 10px;
  border-radius: 3px;
  color: var(--primary-contrast);
  display: flex;
  align-items: center;
  gap: 10px;
}

span.tag.success {
  background-color: var(--primary-color);
}

span.tag.warning {
  background-color: #ae0000;
}

span.tag.alert {
  background-color: #fda116;
}

tbody {
  margin-left: 60px;
  margin-right: 60px;
}

.section-cards {
  display: flex;
  flex-direction: column;
  margin-left: 60px;
  margin-right: 60px;
}

.card-notas {
  background-color: var(--row-alt);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

.card-notas > div {
  flex: 1;
  display: flex;
  justify-content: center;
}

.card-notas i {
  margin-right: 10px;
}

.send_card,
.birth_cards {
  max-width: 70vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  gap: 30px;
}

fieldset {
  display: flex;
  gap: 20px;
  padding: 10px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

fieldset p {
  width: 30%;
}

.send_card textarea {
  width: 500px;
  height: 100px;
}

.margin-t-20 {
  margin-top: 20px;
}

.send_card img,
.birth_cards .card img {
  max-height: 200px;
}

.birth_cards {
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20px;
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}

.chart-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
    background: var(--primary-color);
    color: var(--primary-contrast);
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(3,118,169,0.25);
  }
  .btn:focus { outline: 3px solid rgba(3,118,169,0.35); }


  .bd-backdrop {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .25s ease, visibility .25s ease;
    -o-transition: opacity .25s ease, visibility .25s ease;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9998;
  }
  .bd-backdrop.bd-open { opacity: 1; visibility: visible; }

  .bd-modal {
    position: fixed; top: 0; right: 0;
    width: 100%; max-width: 420px; height: 100%;
    background: var(--primary-contrast);
    color: #222;
    box-shadow: -14px 0 40px rgba(0,0,0,.18);
    -webkit-transform: translateX(105%);
    -ms-transform: translateX(105%);
    transform: translateX(105%);
    -webkit-transition: -webkit-transform .45s cubic-bezier(.22,.8,.36,1);
    -o-transition: transform .45s cubic-bezier(.22,.8,.36,1);
    transition: transform .45s cubic-bezier(.22,.8,.36,1);
    z-index: 9999;
  }
  .bd-modal.bd-open {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .bd-header {
    background: var(--primary-color);
    color: var(--primary-contrast);
    padding: 14px 16px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
  }
  .bd-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
  }

  .bd-close {
    background: transparent;
    border: 0;
    color: var(--primary-contrast);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    width: 50px; 
    height: 34px;
    border-radius: 50%;
  }
  .bd-close:focus { outline: 3px solid rgba(255,255,255,.6); }


  .bd-content {
    padding: 18px;
    height: calc(100% - 56px);
    overflow: auto;
  }
  .bd-card {
    background: #f3fbff;
    border: 1px solid #cfeaf6;
    border-radius: 12px;
    padding: 14px;
  }
  .bd-cta {
    margin-top: 16px;
    background: var(--primary-color);
    color: var(--primary-contrast);
    border: 0;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(3,118,169,0.25);
  }
  .bd-cta:focus { outline: 3px solid rgba(3,118,169,0.35); }


  .bd-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(3,118,169,.1);
    color: var(--primary-color);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    pointer-events: none;
  }

@media screen and (max-width: 1024px) {

  .section-cards {
    margin-left: 10px;
    margin-right: 10px;
  }

  .chart-container {
    padding: 15px;
    max-width: 100%;
  }

  .table-responsive {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
  }

  .table-responsive thead th {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .table-responsive tbody td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
    text-align: left;
  }

  .table-responsive tbody tr:hover {
    background-color: #f8fffe;
    transition: background-color 0.2s ease;
  }

  .table-responsive tbody tr:nth-child(even) {
    background-color: #fafafa;
  }

  .table-responsive tbody tr:nth-child(even):hover {
    background-color: #f0f9f7;
  }
}


@media screen and (max-width: 425px) {
  .table-responsive table.table {
    margin: 0;
    min-width: 500px;
  }

  .table-responsive thead th {
    padding: 12px 15px;
    font-size: 12px;
  }

  .table-responsive tbody td {
    padding: 12px 15px;
    font-size: 12px;
  }

  .margin-t-85 {
    margin-top: 100px !important;
  }

  .chart-container {
    padding: 5px;
    margin: 0 5px;
  }
}