html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
nav {
  background: #222;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: #4fc3f7;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.tool-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.5rem 2rem;
  max-width: 300px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.tool-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}
.tool-card p {
  margin: 0 0 1rem 0;
  color: #555;
  font-size: 1rem;
}
.tool-btn {
  background: #4fc3f7;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.tool-btn:hover {
  background: #0288d1;
}
.tool1-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0.5rem;
}

.tool1-menu-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tool1-menu-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-report-name {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
  font-style: italic;
}
#makeReportBtn {
  background: #4fc3f7;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#makeReportBtn:hover {
  background: #0288d1;
}
.tool1-main {
  display: flex;
  gap: 0;
  max-width: 100vw;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  position: relative;
  height: 0;
}
.tool1-left, .tool1-right {
  min-width: 250px;
  flex: 1 1 0;
  height: auto;
  overflow: auto;
  transition: width 0.2s;
  max-height: calc(100vh - 120px);
  min-height: 300px;
  box-sizing: border-box;
}
.tool1-divider {
  width: 8px;
  background: #e0e0e0;
  cursor: col-resize;
  position: relative;
  z-index: 2;
  transition: background 0.2s;
}
.tool1-divider:hover, .tool1-divider.active {
  background: #4fc3f7;
}
.tool1-left textarea, .tool1-right textarea {
  width: 100%;
  font-size: 1rem;
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  background: #fafbfc;
}
.tool1-output-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
#copyOutputBtn {
  background: #eee;
  color: #222;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#copyOutputBtn:hover {
  background: #4fc3f7;
  color: #fff;
}
/* Tool 1 MVP Enhancements */
.tool1-left {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.tool1-left label {
  font-weight: 500;
  margin-bottom: 0.2rem;
  display: block;
}
.tool1-left textarea,
.tool1-left input[type="text"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  background: #fafbfc;
  box-sizing: border-box;
}
.testcase-block {
  background: #f7fafd;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.testcase-block label {
  font-weight: 400;
  margin-bottom: 0.1rem;
}
.testcase-btn-group {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.minimize-testcase-btn {
  position: static;
  background: #e3f2fd;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1.1em;
  cursor: pointer;
  color: #0288d1;
  padding: 0.2em 0.6em;
  transition: background 0.2s;
}
.minimize-testcase-btn:hover {
  background: #b3e5fc;
}
.remove-testcase {
  align-self: unset;
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0.2em 0.6em;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.2s;
}
.remove-testcase:hover {
  background: #ffcdd2;
}
#add-testcase, #add-config, #add-finding {
  background: #4fc3f7;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
#add-testcase:hover, #add-config:hover, #add-finding:hover {
  background: #0288d1;
}
.config-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.config-block .remove-config {
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.config-block .remove-config:hover {
  background: #ffcdd2;
}
#config-list input[type="text"] {
  flex: 1;
}
#findings-list {
  padding-left: 1.2rem;
}
#findings-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
#findings-list .remove-finding {
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
#findings-list .remove-finding:hover {
  background: #ffcdd2;
}
.tool1-right {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  margin-bottom: 1rem;
  min-width: 300px;
  overflow-x: auto;
}
.report-preview h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #0288d1;
}
.report-preview p {
  margin: 0.2rem 0 0.7rem 0;
}
.report-preview table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: #f7fafd;
  border-radius: 8px;
  overflow: hidden;
}
.report-preview th, .report-preview td {
  border: 1px solid #e0e7ef;
  padding: 0.5rem 0.7rem;
  text-align: left;
  font-size: 0.98rem;
}
.report-preview th {
  background: #e3f2fd;
  color: #222;
}
.report-preview ol, .report-preview ul {
  margin: 0.2rem 0 0.7rem 1.2rem;
}
.tool1-left label[for="summary"],
.tool1-left label[for="testresult"] {
  margin-top: 0.5rem;
}
#summary, #testresult {
  margin-bottom: 1rem;
  min-height: 2.5em;
  resize: vertical;
}
#tool1-form label {
  display: block;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  font-weight: 500;
  color: #222;
}

#tool1-form textarea {
  width: 100%;
  min-height: 120px;
  max-height: 350px;
  font-size: 1.08em;
  padding: 1em;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  resize: none;
  overflow-y: auto;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
  margin-bottom: 1.2em;
}

#tool1-form textarea:focus {
  border: 2px solid #2563eb;
  background: #f0f6ff;
  outline: none;
  box-shadow: 0 0 0 2px #2563eb22;
}

#tool1-form textarea.filled {
  background: #e8f0fe;
  border-color: #2563eb;
  box-shadow: 0 2px 8px #2563eb11;
}
.testcase-steps-section {
  margin-bottom: 0.7rem;
}
.testcase-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.testcase-step-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.testcase-step-input {
  flex: 1;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fafbfc;
}
.remove-step {
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.remove-step:hover {
  background: #ffcdd2;
}
.add-step {
  background: #4fc3f7;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.3rem;
  transition: background 0.2s;
}
.add-step:hover {
  background: #0288d1;
}
.tool1-menu .delete-btn {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.tool1-menu .delete-btn:hover {
  background-color: #c0392b;
}
.tool1-menu .copy-btn {
  background-color: #3498db;
  color: #fff;
  border: none;
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.tool1-menu .copy-btn:hover {
  background-color: #217dbb;
}
.tool1-menu .new-btn {
  background-color: #27ae60;
  color: #fff;
  border: none;
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.tool1-menu .new-btn:hover {
  background-color: #229954;
}
.tool1-menu-separator {
  display: inline-block;
  width: 1px;
  height: 1.8em;
  background: #ddd;
  margin: 0 1em;
  vertical-align: middle;
}
/* Minimize/expand for testcases */
.testcase-block.collapsed .testcase-details {
  display: none;
}
/* Clone button for testcase (similar to remove, but blue/teal) */
.clone-testcase {
  background: #e0f4ff;
  color: #1976d2;
  border: 1px solid #90caf9;
  border-radius: 4px;
  padding: 0.2em 0.7em;
  margin-left: 0.2em;
  cursor: pointer;
  font-size: 0.95em;
  transition: background 0.2s, color 0.2s;
}
.clone-testcase:hover {
  background: #b3e5fc;
  color: #0d47a1;
  border-color: #42a5f5;
}
#findings-section,
#testcases-section,
#config-section {
  margin-top: 1.5em;
}
.testcase-status-btns {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0;
}
.status-btn {
  padding: 0.3em 1em;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.status-btn.selected {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.directory-btn {
  padding: 0.3em 1em;
  border: 1px solid #888;
  background: #f0f0f0;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5em;
  transition: background 0.2s, color 0.2s;
}
.directory-btn:hover {
  background: #e0e0e0;
}

/* Custom Dialog Styles */
#custom-dialog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

#custom-dialog-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-dialog-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#custom-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

#custom-dialog-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

.dialog-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.dialog-close-btn:hover {
  background-color: #f8f9fa;
  color: #495057;
}

#custom-dialog-body {
  padding: 1.5rem;
}

#custom-dialog-message {
  margin: 0 0 1rem 0;
  color: #495057;
  line-height: 1.5;
  font-size: 1rem;
}

#custom-dialog-input-container {
  margin-top: 1rem;
}

#custom-dialog-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#custom-dialog-input:focus {
  outline: none;
  border-color: #4fc3f7;
}

#custom-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  background: #f8f9fa;
}

.dialog-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.dialog-btn-primary {
  background: #4fc3f7;
  color: white;
}

.dialog-btn-primary:hover {
  background: #0288d1;
  transform: translateY(-1px);
}

.dialog-btn-secondary {
  background: #6c757d;
  color: white;
}

.dialog-btn-secondary:hover {
  background: #495057;
  transform: translateY(-1px);
}

.dialog-btn:active {
  transform: translateY(0);
}

#report-directory-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
#report-directory-modal.active {
  display: flex;
}
#report-directory-content {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
#report-directory-list {
  margin: 1em 0;
  max-height: 300px;
  overflow-y: auto;
}
.report-directory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
}
.report-directory-item:last-child {
  border-bottom: none;
}
.report-directory-actions button {
  margin-left: 0.5em;
}
@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 56px;
    right: 0;
    background: #222;
    flex-direction: column;
    width: 180px;
    padding: 1rem 0;
    gap: 1rem;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .tool-list {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .tool-card {
    width: 90%;
    max-width: 350px;
  }
}
@media (max-width: 800px) {
  .tool1-main {
    flex-direction: column;
    gap: 1.2rem;
  }
}
/* Responsive toggle for mobile split view */
@media (max-width: 900px) {
  .tool1-main {
    flex-direction: column;
    min-height: unset;
    position: relative;
    height: auto;
  }
  .tool1-divider {
    display: none;
  }
  .tool1-left, .tool1-right {
    width: 100% !important;
    min-width: unset;
    max-width: unset;
    display: none;
    max-height: none;
    min-height: 300px;
  }
  .tool1-left.active, .tool1-right.active {
    display: block;
    max-height: none;
    min-height: 300px;
  }
  .tool1-toggle-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: #f1f1f1;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .tool1-toggle-btn {
    background: #e3f2fd;
    color: #0288d1;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .tool1-toggle-btn.active {
    background: #0288d1;
    color: #fff;
  }
} 