.administration {
  .navigation-menu > ul {
    display: flex;
    align-items: center;
    padding: 0 40px;
    margin: 0;
    height: 50px;
    background: var(--color-green);

    > li {
      list-style-type: none;
      height: 100%;
      position: relative;

      &#logout { margin-left: auto; }

      > a {
        color: var(--color-neutral-0);
        text-decoration: none;
        font-weight: 500;
        height: 100%;
        padding: 0 10px;
        display: flex;
        align-items: center;

        &:hover,
        &.selected {
          color: var(--color-neutral-500);
          background: var(--color-green-light);
        }
      }

      &:has(> ul) > a::after {
        content: ' ▾';
        font-size: 0.7em;
        margin-left: 3px;
      }

      > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        margin: 0;
        padding: 0;
        min-width: 200px;
        background: var(--color-green);
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

        > li {
          list-style-type: none;
          width: 100%;

          > a {
            color: var(--color-neutral-0);
            text-decoration: none;
            font-weight: 500;
            padding: 10px 16px;
            display: block;
            white-space: nowrap;

            &:hover,
            &.selected {
              color: var(--color-neutral-500);
              background: var(--color-green-light);
            }
          }
        }
      }

      &:hover > ul {
        display: flex;
      }
    }
  }

  .navigation-hamburger {
    display: none;
  }

  @media (max-width: 768px) {
    .navigation {
      position: relative;
    }

    .navigation-hamburger {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      background: var(--color-green);
      color: var(--color-neutral-0);
      border: none;
      cursor: pointer;
      font-size: 1.3rem;
    }

    .navigation-menu {
      display: none;
    }

    .navigation-menu.navigation--open {
      display: block;
    }

    .navigation-menu > ul {
      flex-direction: column;
      align-items: stretch;
      height: auto;
      padding: 0;

      > li {
        height: auto;

        > a {
          height: auto;
          padding: 12px 16px;
          justify-content: flex-start;
        }

        &:has(> ul) > a {
          display: none;
        }

        > ul {
          position: static;
          display: flex;
          box-shadow: none;
          min-width: 0;
          background: var(--color-green);

          > li > a {
            text-align: left;
          }
        }
      }
    }
  }

  main {
    background: none;

    .sub-menu {
      display: inline-flex;
      gap: 10px;
      margin-bottom: 10px;
      padding: 10px;
      background: var(--color-neutral-100);
      border-radius: var(--border-radius);
      border: 1px solid var(--color-neutral-200);
    }
  }

  .tab-button {
    border-radius: 5px 5px 0px 0px;
    margin: 0px;
    border: 1px solid #c5c5c5;
    background: #f6f6f6;
    font-weight: normal;
    color: #454545;
    cursor: pointer;
  }

  .tab-active {
    border: 1px solid #003eff;
    background: #007fff;
    font-weight: normal;
    color: #fff;
    cursor: text;
  }

  .tab-button:hover {
    background: #111111;
    color: white;
  }

  #tabs .contents {
    position: relative;
    padding: .2em;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #c5c5c5;
  }

  #tabs .content {
    padding: 1em 1.4em;
  }

  #tabs ul {
    background: #e9e9e9;
  }

  .clearfix:before,
  .clearfix:after {
    content: "";
    display: table;
    border-collapse: collapse;
  }
  .clearfix:after {
    clear: both;
  }

  #tabs ul li {
    margin-bottom: -1px;
    padding-bottom: 1px;
    list-style: none;
    float: left;
    position: relative;
    top: 0;
    margin: 1px .2em 0 0;
    border-bottom-width: 0;
    padding: 0;
    white-space: nowrap;
  }
}

.form-horizontal {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 15px; }

.control-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  position: relative;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.has-error .form-control {
  border-color: #a94442;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.has-error .help-block {
  color: #a94442;
}

.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}

.copyright-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.copyright-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.copyright-card {
  background: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  overflow: hidden;
  width: 230px;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.copyright-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--color-neutral-100);
  display: block;
}

.copyright-card-body { padding: 10px; }

.copyright-card-plant {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 5px;
  word-break: break-word;
  line-height: 1.4;
}

.copyright-card-meta { margin-bottom: 6px; }

.copyright-exif {
  color: var(--color-neutral-400);
  margin: 2px 0;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.copyright-quick-form select,
.copyright-quick-form textarea { font-size: 12px; }

.copyright-card-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.show-in-list-icon {
  color: var(--color-green-dark);
  font-size: 13px;
}
