/*-----------------------------
 Modal Styles
-----------------------------------*/
body.modal-open {
  padding: 0 !important;
}

.share-btn-activation {
  .share-btn-setting {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--color-primary-alta);
    padding: 5px 0;
    border-radius: 5px;
    z-index: 2;
    .btn-setting-text {
      border: 0;
      color: var(--color-white);
      font-weight: 400;
      font-size: 14px;
      padding: 9px 20px;
      letter-spacing: 0.5px;
      text-align: left;
      transition: 0.3s;
      &:hover {
        color: var(--color-primary);
      }
      & + .btn-setting-text {
        border-top: 1px solid var(--color-border);
      }
    }
  }
}

/*---------------------------------
    Share Modal Wrapper
----------------------------------*/
.modal-backdrop {
  background-color: #000;
}

.modal-backdrop.show {
  background-color: #000;
  opacity: 0.75;
}

.rn-popup-modal {
  .modal-content {
    background-color: var(--background-color-2);
    border: 0 none;
    padding: 40px 20px;
    border-radius: 10px;
    @media #{$sm-layout} {
      padding: 20px 15px;
    }
  }
  .btn-close {
    margin: 0;
    position: fixed;
    z-index: 99;
    right: 30px;
    top: 30px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    transition-delay: 0.3s;
    svg,
    i {
      color: #fff;
      width: 18px;
      font-size: 18px;
    }
  }
  .modal-header {
    border: 0 none;
    justify-content: center;
    margin-bottom: 10px;
  }
  @media (min-width: 576px) {
    .modal-dialog {
      max-width: 450px;
    }
  }
  &.show {
    .btn-close {
      opacity: 1;
    }
  }
}

.modal-50 {
  .modal-content {
    background-color: var(--background-color-2);
    border: 0 none;
    padding: 40px 20px;
    border-radius: 10px;
    @media #{$sm-layout} {
      padding: 20px 15px;
    }
  }
  @media (min-width: 576px) {
     .modal-dialog {
      max-width: 50% !important;
    }
  }
  .btn-close {
    margin: 0;
    position: fixed;
    z-index: 99;
    right: 30px;
    top: 30px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    transition-delay: 0.3s;
    svg,
    i {
      color: #fff;
      width: 18px;
      font-size: 18px;
    }
  }
  .modal-header {
    border: 0 none;
    justify-content: center;
    margin-bottom: 10px;
  }
  &.show {
    .btn-close {
      opacity: 1;
    }
  }
}

/* Share Modal Popup  */
.share-modal-wrapper {
  .modal-footer {
    border: 0 none;
  }
}

/* Report Modal Popup  */
.report-modal-wrapper {
  .modal-header {
    &.report-modal-header {
      justify-content: flex-start !important;
    }
  }
}

/*--------------------------------
    Place Bid Modal Popup
---------------------------------*/
.placebid-modal-wrapper {
  p {
    color: #fff;
    font-size: 16px;
  }
  .bid-content-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    span {
      display: block;
      margin-bottom: 10px;
      font-size: 16px;
      color: var(--color-body);
    }
  }
  .bid-content-mid {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    span {
      display: block;
      margin-bottom: 10px;
      font-size: 16px;
      color: var(--color-body);
    }
    .bid-content-right {
      span {
        &:last-child {
          color: var(--color-primary);
        }
      }
    }
  }

  .schedule-options {
    .form-label {
      width: 100%;
    }
  }

  .decrease-interval-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

// report modal area Start
.report-content-wrapper {
  .modal-body {
    padding: 0;
    p {
      margin-bottom: 15px;
    }
  }
}
.report-modal-header {
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  h5 {
    margin-bottom: 10px;
  }
}
.report-form-box {
  h6 {
    &.title {
      margin-bottom: 15px;
    }
  }
  textarea {
    height: 100px;
    background: var(--background-color-1);
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 5px 10px;
    &:focus {
      border-radius: 5px;
      border: 2px solid var(--color-primary) !important;
    }
  }
}

// place bed

.placebid-modal-wrapper {
  .modal-header {
    padding: 0;
    margin-bottom: 15px;
  }
  .modal-body {
    p {
      margin-bottom: 15px;
    }
    .inscription-preview {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 24px;

      img {
        max-height: 300px;
      }
    }
    .placebid-form-box {
      h5 {
        &.title {
          margin-bottom: 15px;
        }
      }

      .bid-content {
        .bid-content-top {
          display: block;
          border: none;
          padding: 0;
          .bid-content-left {
            .form-control {
              background: var(--background-color-1);
              height: 40px;
              border-radius: 5px;
              border: 2px solid transparent;
              font-size: 1.5rem;
              color: var(--color-white);
              width: 100%;

              &:focus {
                border: 2px solid var(--color-primary);
              }
            }
            .form-range {
              border: 0px;
            }
            span {
              right: 15px;
              position: absolute;
              top: 50%;
              transform: translateY(-50%);
            }
          }
        }
      }
    }
  }
}

.hide-animated {
  animation: fadeOut 500ms ease-out;
  animation-fill-mode: forwards;
}

.show-animated {
  animation: fadeIn 500ms ease-in;
  animation-fill-mode: forwards;
}

/*--------------------------------
    Lightning Payment Modal
---------------------------------*/
.lightning-payment-content {
  .qr-code-container {
    .qr-code-wrapper {
      display: inline-block;
      padding: 20px;
      background: var(--background-color-1);
      border-radius: 10px;
      border: 2px solid var(--color-border);
      
      .qr-code {
        display: block;
        margin: 0 auto;
      }
    }
  }

  .payment-options {
    .btn {
      margin-bottom: 10px;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .invoice-display {
    .form-group {
      .form-label {
        color: var(--color-body);
        font-size: 14px;
        margin-bottom: 8px;
      }
      
      .form-control {
        background: var(--background-color-1);
        border: 2px solid var(--color-border);
        border-radius: 5px;
        color: var(--color-white);
        font-size: 12px;
        font-family: monospace;
        padding: 10px;
        
        &:focus {
          border-color: var(--color-primary);
          box-shadow: none;
        }
      }
    }
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*--------------------------------
    Bulk Send Preview Modal
---------------------------------*/
.modal-xl {
  .modal-dialog {
    max-width: 90% !important;
    margin: 1.75rem auto;
  }
  
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background-color: var(--background-color-2);
  }
  
  .modal-body {
    padding: 0;
  }
}

.bulk-send-preview {
  padding: 20px 0;
  
  .section-title {
    color: var(--color-white);
    font-size: 1.75rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
    
    i {
      color: var(--color-primary);
      font-size: 1.5rem;
    }
  }

  .inputs-section {
    .inputs-grid {
      display: flex;
      flex-direction: column;
      gap: 15px;
      
      .input-item {
        .input-card {
          background: var(--background-color-2);
          border: 1px solid var(--color-border);
          border-radius: 8px;
          padding: 20px;
          transition: all 0.3s ease;
          
          &:hover {
            border-color: var(--color-primary);
          }
          
                    .input-thumbnail {
            margin-bottom: 15px;
          }
          
          .input-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            
            .input-index {
              color: var(--color-primary);
              font-weight: 700;
              font-size: 1.25rem;
            }
            
            .input-value {
              color: var(--color-white);
              font-weight: 700;
              font-size: 1.25rem;
            }
          }
        }
      }
    }
  }

  .outputs-section {
    .outputs-list {
      .output-item {
        background: var(--background-color-2);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        
        &:hover {
          border-color: var(--color-primary);
        }
        
        &:last-child {
          margin-bottom: 0;
        }
        
        .output-info {
          display: flex;
          align-items: center;
          gap: 20px;
          
          .output-index {
            color: var(--color-primary);
            font-weight: 700;
            font-size: 1.25rem;
            min-width: 50px;
          }
          
          .output-details {
            flex: 1;
            
            .output-address {
              color: var(--color-white);
              font-family: monospace;
              font-size: 1rem;
              margin-bottom: 5px;
              word-break: break-all;
            }
            
            .output-type {
              color: var(--color-body);
              font-size: 0.9rem;
              text-transform: uppercase;
              letter-spacing: 0.5px;
            }
          }
          
          .output-value {
            color: var(--color-white);
            font-weight: 700;
            font-size: 1.25rem;
            min-width: 140px;
            text-align: right;
          }
        }
      }
    }
  }

  .transaction-summary {
    background: var(--background-color-2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    
    .summary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--color-border);
      
      &:last-child {
        border-bottom: none;
      }
      
      span {
        color: var(--color-white);
        font-size: 1rem;
        
        &:first-child {
          color: var(--color-body);
        }
      }
      
      &.fee-row {
        span:last-child {
          color: var(--color-primary);
          font-weight: 600;
        }
      }
    }
  }

  .sign-button-container {
    margin-top: 30px;
    
    .btn {
      height: 50px;
      font-size: 1.1rem;
      font-weight: 600;
    }
  }
}
