:root {
  --file-container-bg: #eeeeee;
  --file-bg: #f8f8f8;
  --file-border-color: #DCDCDC;
  --file-rounded: 15px;
  --file-color: #2b2b2b;
  --table-border-color: #dbdbdb;
  --delete-button-bg: #f53636;
  --delete-button-color: #ffffff;
  --font-size: 0.875em;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow: 0px 5px 10px -8px rgba(0, 0, 0, 0.5);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.file-container {
  width: 100%;
  font-family: var(--font-family);
  .file-upload {
    width: 100%;
    display: flex;
    /*    background-color: var(--file-container-bg);*/
    border-radius: var(--file-rounded);
    transition: all 0.3s;
    &:hover {
      box-shadow: var(--shadow);
    }
    > div {
      width: 100%;
      padding: 25px;
      border-radius: 10px;
      border: 1px dashed var(--file-border-color);
      text-align: center;
      cursor: pointer;
      > i {
        font-size: 3.125em;
        color: var(--file-color);
      }
      > p, span, div {
        font-size: var(--font-size);
        line-height: 30px;
        color: var(--file-color);
      }
      > div {
        width: max-content;
        padding: 0 10px;
        margin: 0 auto;
        border: 1px solid var(--file-border-color);
        border-radius: 8px;
      }
    }
  }
  > table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size);
    margin-top: 20px;
    & th, td {
      border-bottom: 1px solid var(--table-border-color);
      padding: 8px;
      text-align: left;
    }
    > tbody {
      > tr {
        > td {
          &:nth-child(1) {
            font-weight: bold;
          }
          &:nth-child(2) {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            max-width: 1px;
          }
          &:nth-child(3) {
            text-align: center;
          }
          > img {
            border-radius: 5px;
            box-shadow: var(--shadow);
          }
          &.no-file {
            text-align: center;
            font-weight: normal;
          }
          > i {
            font-size: 1.125em;
          }
        }
      }
    }
    & button {
      background-color: var(--delete-button-bg);
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      &:hover {
        box-shadow: var(--shadow);
      }
      > i {
        color: var(--delete-button-color);
        font-size: 1.125em;
      }
    }
  }
}
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.image-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.round-badge {
  background-color: #1e40af;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}
.document-card {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fafafa;
  height: 100%;
}
.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.image-grid {
  display: grid;
  gap: 15px;
  min-height: 215px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  font-weight: bold;
  text-align: center;
  min-height: 100px; 
}

.main-photo {
  grid-column: 1 / 2;
  grid-row: 1 / 1;
}
.main-photo .gallery-item {
  height: 100%; 
}

.side-photos {
  grid-column: 2 / 3;
  grid-row: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
}
.side-photos .gallery-item {
  width: 100%;
  height: 100%;
}