// This file is part of Indico.
// Copyright (C) 2002 - 2026 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'base/palette' as *;
@use 'design_system';

.dropzone-area {
  :global(.ui.segment) {
    border: 2px dashed #007cac !important;
  }

  .picture-card {
    .action {
      position: absolute;
      top: 3px;
      cursor: pointer;
      right: -1px;
      background-color: white;
    }

    :global(.ui.progress) {
      margin: 0;
    }
  }

  .picture-selection-btn {
    max-width: none !important;
    margin-right: auto !important;
  }

  .last-picture-selection-btn {
    margin-left: auto !important;
    transform: translateX(-33%);
  }
}

.picture-outer-div {
  width: 100%;
  background-color: #444;
  border-radius: 3px;

  .picture-inner-div {
    color: $light-gray;
    width: 100%;
    margin: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: cell;
  }

  .back-button {
    position: absolute;
    top: 25px;
    left: 30px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    &:focus-visible {
      outline: 2px solid #4183c4;
      outline-offset: 2px;
    }
  }

  .cropper-inner-div {
    height: 90%;
  }

  .cropper-action-btn {
    margin-top: 30px !important;
    border-radius: 6px !important;
    max-width: none !important;

    &:last-of-type {
      margin-left: 20px !important;
    }
  }
}

.loading-overlay {
  position: absolute;
  top: 50%;
  left: 45%;
}

.hidden {
  display: none;
}

.show {
  display: block;
}

.trigger {
  @extend %button;
  font-size: 120%;
}

.capture-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 1em;
}
