@import "shared/loader.css";

body {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  position: relative;
}
@import "shared/loader.css";

/* Base styles */
body {
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1f36;
}

/* Container */
.integration-container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

/* Header styling */
.header {
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 2rem;
}

.provider-logo {
  height: auto;
  width: 3rem;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1f36;
  margin: 0;
}

.kreditz-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 1.5rem;
}

.header-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1f36;
  margin: 0;
  margin-right: 1rem;
}

.header-provider-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #3e85f9;
}

/* one-column layout */
.integration-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  max-width: 800px;  
  margin: 0 auto; 
}

/* Form section */
.key-section {
  margin: 0;
}

.submit-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/* Input groups */
.input-group {
  margin-bottom: 1rem;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.input-group input {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fff;
}

.input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input.valid {
  border-color: #10b981;
}

.input-group input.invalid {
  border-color: #ef4444;
}

/* Key field with copy button */
.key-field {
  display: flex;
  gap: 0.5rem;
}

.key-field input {
  flex: 1;
  background-color: #f9fafb;
  cursor: default;
}

/* Instructions section */
.instructions-wrapper {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  position: sticky;
  top: 2rem;
}

.instructions-wrapper h3 {
  font-size: 1rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.instructions {
  padding-left: 1.25rem;
  margin: 0;
}

.instructions li {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Buttons */
.submit-button {
  background: #3b82f6;
  color: white;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.submit-button:not(:disabled):hover {
  background: #2563eb;
}

.submit-button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  position: relative;
}

/* Tooltip styles */
.submit-button:disabled::after {
  content: "Integration activation will unlock the continue button";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background-color: #374151;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.submit-button:disabled:hover::after {
  visibility: visible;
  opacity: 1;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-button:hover {
  background: #e5e7eb;
}

.copy-button.copied {
  background: #10b981;
  color: white;
}

/* Error messages */
.error-message {
  font-size: 0.875rem;
  color: #ef4444;
  margin-top: 0.5rem;
  display: none;
}

/* Responsive design */
@media (max-width: 768px) {

  .instructions-wrapper {
    position: static;
    margin-top: 2rem;
  }

  .integration-container {
    margin: 1rem;
    padding: 1.5rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered-title {
  display: flex;
  justify-content: center;
}

.hidden {
  display: none !important;
}
.header {
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 2rem;
}

.key-section {
  margin: 0;
  width: 100%;
}

.flash-message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  position: fixed;
  top: 20px;
  transition: all ease-in-out 0.3s;
}

.custom-integration-form .input-group input {
  margin-bottom: 10px;
  font-size: 14px;
}

.custom-integration-form .input-group input,
.custom-integration-form .key-section {
  width: 100%;
  box-sizing: border-box;
}

.custom-integration-form .input-group label {
  margin: 0 0 5px 8px;
}

body:has(.integration-guide) {
    height: auto;
  }
  .integration-guide .integration-container {
    padding: 1.5rem;
  }
  .integration-guide .header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  .integration-guide .kreditz-logo {
    margin-bottom: 0.5rem;
  }
  .integration-guide .instructions-wrapper {
    position: initial;
    flex-basis: 50%;
    padding: 1rem 1.5rem;
  }
  .integration-guide .key-section {
    display: flex;
    gap: 1rem;
  }
  .integration-guide .input-group {
    margin-top: 2rem;
    flex-basis: 50%;
  }
  .integration-guide .instructions li {
    color: #111111;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  .integration-guide .instructions-wrapper h3 {
    color: #111111;
  }
  .integration-guide .submit-button {
    background: #3b82f6;
  }
  .integration-guide .submit-button:disabled {
    background: #e5e7eb;
  }

  @media (max-width: 767px) {
    .integration-guide .key-section {
      flex-wrap: wrap;
    }
    .integration-guide .instructions-wrapper,
    .integration-guide .input-group {
      flex-basis: 100%;
    }
  }
.item {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
}

.default-bksp-loader {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 40px 0 #0065FF;
  position: relative;
  animation: loader-animation 0.8s ease-in-out alternate infinite;
  animation-delay: 0.32s;
  top: 50%;
  margin: 0px auto 0;
}

.default-bksp-loader::after,
.default-bksp-loader::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  border-radius: 50%;
  box-shadow: 0 40px 0 #0065FF;
  animation: loader-animation 0.8s ease-in-out alternate infinite;
}

.default-bksp-loader::before {
  left: -30px;
  animation-delay: 0.48s;
}

.default-bksp-loader::after {
  right: -30px;
  animation-delay: 0.16s;
}

@keyframes loader-animation {
  0% {
    box-shadow: 0 40px 0 #0065FF;
  }

  100% {
    box-shadow: 0 20px 0 #0065FF;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
