/* main.css  */
/* ================================
   MODERN SaaS UI (CLEAN + GLASS)
================================ */

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: radial-gradient(circle at top, #eef2ff, #f8fafc);
  color: #111827;
}

/* ---------------- HEADER ---------------- */
.header-container {
  width: 100%;
}

.header {
  text-align: center;
  padding: 10px 20px 10px;
}

.header__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ---------------- INPUT ROW ---------------- */
.url-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px auto;
  flex-wrap: wrap;
}

.url-section__label {
  width: 120px;
  font-weight: 600;
  color: #374151;
}

.url-section__input {
  width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  outline: none;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.url-section__input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.url-section__input-medium {
  width: 180px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  outline: none;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.workers-section__input {
  width: 36px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  outline: none;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.workers-section__input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.steps-section__title {
  display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 18px auto;
    flex-wrap: wrap;
}

/* ---------------- TEXTAREA ---------------- */
.steps-section__textarea {
  display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 18px auto;
    flex-wrap: wrap;
  width: min(900px, 92%);
  height: 140px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: white;
  font-family: monospace;
  resize: vertical;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* ---------------- BUTTONS ---------------- */
.actions-section {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.actions-section__btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  color: white;
  background: #4f46e5;
  box-shadow: 0 6px 15px rgba(79,70,229,0.25);
}

.actions-section__btn:hover {
  transform: translateY(-1px);
  background: #4338ca;
}

.actions-section__btn:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.actions-section__btn--green {
  background: #10b981;
} 

.actions-section__btn--secondary {
  background: white;
  color: #4f46e5;
  border: 1px solid #4f46e5;
  box-shadow: none;
}

.actions-section__btn--secondary:hover {
  background: #eef2ff;
} 



/* ---------------- OUTPUT ---------------- */
.output-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.output-section__box {
  width: min(1000px, 92%);
  height: 200px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, monospace;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

/* ---------------- PROJECT LIST ---------------- */
#projectList {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

#projectList button {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: white;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  color: black;
}

#projectList button:hover {
  border-color: #6366f1;
  transform: translateY(-1px);
}

/* ---------------- DELETE X ---------------- */
.delete-cross {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #ef4444;
  cursor: pointer;
  font-size: 18px;
}

.delete-cross:hover {
  color: #b91c1c;
}

/* ---------------- LOG COLORS ---------------- */
.log-pass { color: #16a34a; font-weight: 600; }
.log-fail { color: #dc2626; font-weight: 600; }
.log-info { color: #111827; opacity: 0.8; } 

/* =================================
   EXTRA MODERNIZATION
================================= */

.page-card {
  max-width: 850px;
  margin: 0px auto;
  padding: 0 20px;
}

.actions-section__btn--right {
  display: flex; 
  justify-content: flex-end;
  margin-left: auto; 
}

.actions-section__btn--danger {
  background: #ef4444;
  box-shadow: 0 6px 15px rgba(239,68,68,.25);
}

.actions-section__btn--danger:hover {
  background: #dc2626;
}

.output-section__box {
  width: 100%;
  min-height: 200px;
}

.output-section__box-min {
  width: 100%;
  min-height: 120px;
  width: min(1000px, 92%);
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, monospace;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
  margin: 20px auto;
}

.output-section__box::-webkit-scrollbar {
  width: 8px;
}

.output-section__box::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 20px;
} 


/* FROM SAVED TESTS */ 

  .tests-columns_list {
    max-height: 400px;
    padding-top: 4px;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
  } 

  .credentials-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 18px auto;
    flex-wrap: wrap;
  }

  .cred-item {
    padding: 10px;
  } 

  /* ================= HEADER DESIGN ================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 20px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* .logo {
  font-weight: 900;
  font-size: 18px;
  color: #4f46e5;
} */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 900;
    font-size: 18px;
    color: #4f46e5;
}

.logo__icon {
    width: 56px;
    height: 56px;
}

/* NAV */
.nav {
  display: flex;
  gap: 10px;
}

.nav button {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  transition: 0.2s;
}

.nav button:hover {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
}

/* ACTIVE PAGE */
.nav button.active {
  background: #4f46e5;
  color: white;
}

/* disabled current page */
.nav button.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.project-badge {
  margin-left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(79,70,229,0.1);
  color: #4f46e5;
  font-weight: 700;
  font-size: 13px;
  max-width: 200px;
  white-space: nowrap;   
  overflow: hidden;      
  text-overflow: ellipsis;
}

.checkbox {
  display: inline-block;
} 

.loading-overlay {
  z-index: 10000;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.5);

  display: none;
  justify-content: center;
  align-items: center;

  /* z-index: 999999; */
}

.loading-overlay__content {
  background: white;

  padding: 20px 40px;

  border-radius: 10px;

  font-size: 22px;
  font-weight: bold;

  box-shadow: 0 4px 20px rgba(0,0,0,.2);
} 

#stopRunBtn {
  z-index: 100001;
  font-size: 18px;
  font-weight: bold;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ================= LOGIN ================= */

.forgot-password {
  display: flex;
  justify-content: flex-end;

  width: 480px;
  margin: -8px auto 18px;
}

.forgot-password a {
  color: #4f46e5;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;

  transition: .2s;
}

.forgot-password a:hover {
  color: #312e81;
  text-decoration: underline;
}


