* {
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

.alignment{
    display: contents;
}

.welcome-message {
    text-align: center;
    font-size: 2rem;
    color: #333;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto; /* Centers the div horizontally */
    font-family: 'Roboto', sans-serif; /* Elegant font family */
    letter-spacing: 1px; /* Adds a bit of spacing between letters */
    text-transform: capitalize; /* Capitalizes the first letter of each word */
    font-weight: 500; /* Slightly lighter than bold for a sleek look */
    /*padding: 25px 30px 0px 30px;
    Top, Right, Bottom, Left*/
}

.welcome-message p {
    font-weight: 600;
    padding: 25px 30px 0px 30px;
    /*Top, Right, Bottom, Left*/
}

.form-container {
    width: 100%;
    /* Assuming it's already full width */
    max-width: 1000px;
    /* Set a max width for better centering */
    margin: 50px auto 50px;
    /* 100px from top, auto for horizontal centering */
    border: 1px solid #ccc;
    padding: 30px 30px 30px 30px;
    border-radius: 20px;
    /* Smooth rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Soft shadow for a modern touch */
    font-family: 'Arial', sans-serif;
    /* Modern font choice */
}

.row-container {
    display: grid;
    grid-template-columns: 120px 35% auto 1fr;
    grid-template-areas: "http readonly separator endpoint";
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    width: 100%;
}

/* Assign grid areas */
.http-verbs {
    grid-area: http;
    background-color: white;
    color: #000;
}

.read-only-endpoint {
  grid-area: readonly;
}

.separator {
  grid-area: separator;
  justify-self: center;
}

.end-point {
  grid-area: endpoint;
}

.http-verbs,
.read-only-endpoint,
.end-point {
  padding: 10px 10px 10px 10px;
  border: 2px inset #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  width: 100%;
}

.end-point-container {
   position: relative;
    grid-area: endpoint;
}

.separator {
  font-weight: bold;
  font-size: 1.8em;
  line-height: 1;
  margin: 0;
}

/* Hover/Focus States */
.http-verbs:hover,
.read-only-endpoint:hover,
.end-point:hover,
.http-verbs:focus,
.read-only-endpoint:focus,
.end-point:focus {
  border-color: #007bff;
  outline: none;
}

.valid-input-text {
  border: 1px solid #ccc;
}

/* Invalid regex: light red background */
.input-regex-not-matched {
  background-color: #ffebee !important;
}

/* Duplicate value: dark orange border */
.duplicate-input-key {
  border: 2px solid #ff5722 !important;
}

#id-end-point.error {
    border-color: red;
}

.add-more-button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-more-button {
    background-color: #57b894;
    color: white;
}

.add-more-button:hover {
    background-color: #3e8c6f;
}

.key-value-fieldset {
    border: 2px inset #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.key-value-fieldset:hover {
    border-color: #007bff;
    outline: none;
}

.dropdown-1 {
    width: 200px;  /* Set a fixed width or adjust as necessary */
    padding: 8px;
    font-size: 14px;
    border: 2px inset #ccc;
    border-radius: 5px;
    color: #333;
    background-color: white;
}

.dropdown-small {
    width: 125px;
}

/* Add some hover and focus effects for the dropdown */
.dropdown-1:hover,
.dropdown-1:focus {
    border-color: #007bff;
    outline: none;
}


/* Optional: spacing between multiple details blocks */
.field-toggle-header-index {
  margin-top: 16px;
}

/* The container that holds inputs and button */
.header-container-index {
    border: 2px dashed #ccc;
    border-radius: 4px;
    font-size: 14px;
    padding: 12px;
    margin: 40px 0;
}

.header-container-index:hover,
.header-container-index:focus{
    border-color: #007bff;
    outline: none;
}

/* Layout for the row of inputs */
.header-auth-row-index {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Key and Timer take less space */
.header-label-index.key-label {
    flex: 0.5 1 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

/* Value gets more space */
.header-label-index.value-label {
  flex: 1 1 0;
}

/* Style for all input fields */
.header-key-index,
.header-value-index {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 2px inset #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.header-key-index{
    background-color: #f0f0f0;
    color: #333; /* Darker text for readability */
}

.header-key-index:hover,
.header-key-index:focus,
.header-value-index:hover,
.header-value-index:focus{
    border-color: #007bff;
    outline: none;
}

.key-value-row {
    display: flex;
    /* Align elements side by side */
    align-items: center;
    /* Center items vertically */
    margin-bottom: 10px;
    /* Space between rows */
}

.key-input,
.value-input {
    flex: 1;
    /* Allow inputs to grow equally */
    margin-right: 10px;
    margin-left: 10px;
    /* Space between inputs */
    padding: 8px;
    border: 2px inset #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    /* Smooth border color transition */
}

.key-input:focus,
.value-input:focus,
.key-input:hover,
.value-input:hover {
    border-color: #007bff;
    /* Change border color on focus */
    outline: none;
    /* Remove default outline */
}

.remove-button {
    margin-left: 10px;
    /* Space before the remove button */
    cursor: pointer;
    /* Change cursor to pointer */
    padding: 8px 12px;
    /* Button padding */
    border: 1px solid red;
    /* Visible border for the button */
    background-color: white;
    /* White background for visibility */
    border-radius: 50px;
    /* Rounded corners */
    color: red;
    /* Color for the remove button */
    font-size: 0.8em;
    /* Slightly larger font size for visibility */
    transition: background-color 0.3s;
    /* Smooth transition for hover effect */
}

.remove-button:hover {
    background-color: rgba(255, 0, 0, 0.1);
    /* Light red background on hover */
}

.end-point-char-counter,
.get-textarea-char-counter,
.requestBody-textarea-char-counter,
.response-textarea-char-counter {
    position: absolute;
    bottom: 2px;
    right: 6px;
    font-size: 10px;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.get-textarea-container,
.requestBody-textarea-container,
.response-textarea-container {
    position: relative;
}

#char-count {
    font-size: 0.9em;
    color: black;
    font-style: italic;
    font-weight: lighter;
}

.get-textarea-container,
.text-area-group{
    position: relative;
    width: 100%;
    margin-top: 20px;
    /* Add vertical spacing */
}

.get-textarea,
.post-text-area {
    width: 100%;
    height: 350px;
    padding: 10px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    border: 2px inset #ccc;
    border-radius: 20px;
    resize: none;
}

.get-textarea:hover,
.get-textarea:focus,
.post-text-area:hover,
.post-text-area:focus {
    border-color: #007bff;
    outline: none;
}

.text-area-format-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.get-textarea.invalid,
.post-text-area.invalid {
    /*border-color: red;*/
    background-color: #ffebee;
}

.disabled-info{
     padding-top: 10px;  /* Space inside the <p> element before text */
    padding-bottom: 10px;  /* Space inside the <p> element after text */
}

.get-validation-error {
    margin-bottom: 5px;
    font-style: italic;
    margin-top: 20px;
    /* Add spacing above the error message */
}
 /* ****************** NEW TEXT AREA STARTS ****************** */

.ops-containers-wrapper-index {
  display: flex;
  gap: 20px;
  width: 100%;
}

.read-ops-selector-index,
.modify-ops-container-index {
  flex: 1; /* Each takes equal width */
}

/* Container for the two select elements to be side by side */
.read-ops-select-row-index {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Response/Request Areas */
.read-ops-selector-index {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modify Ops Textarea - Hidden by default */
.modify-ops-container-index {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.response-textarea-index-container,
.request-textarea-index-container {
    position: relative;
}

.response-textarea-index,
.request-textarea-index {
    width: 100%;
    height: 350px;
    padding: 10px 60px 25px 10px;
    box-sizing: border-box;
    font-size: 1em;
    border: 2px inset #ccc;
    border-radius: 20px;
    min-height: 100px;
    resize: vertical;
}

.request-textarea-index.invalid,
.response-textarea-index.invalid {
    /*border-color: red;*/
    background-color: #ffebee;
}

.response-textarea-index-char-counter,
.request-textarea-index-char-counter {
    position: absolute;
    bottom: 2px;
    right: 6px;
    font-size: 10px;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.get-validation-error-index {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.request-error-message-index {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* If you want to test with modify-ops visible, use this: */
/*.modify-ops-textarea {
  display: flex;
}*/

/* If you want both visible at the same time for testing: */
/*.read-ops-selector,
.modify-ops-textarea {
  display: flex;
}*/

 /* ****************** NEW TEXT AREA ENDS ****************** */


.generate-button-container{
    margin-top: 20px;
    /* Add spacing above the button */
    text-align: center;
    /* Center the button */
}

.button-container {
    width: 78%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto 0;
    flex-wrap: wrap; /* Optional: wrap on small screens */
}

.button-container-wrapper {
    text-align: left; /* ensures content aligns left */
    padding-bottom: 10px; /* Add space below the button */
}

/* Group left-aligned buttons */
.button-group {
    display: flex;
    gap: 10px; /* space between buttons */
}

/* Group right-aligned selects */
.select-group {
    display: flex;
    gap: 15px; /* space between selects */
    align-items: center;
}

.submit-button {
    padding: 10px 20px;
    background-color: #57b894; /*#4CAF50;*/
    /* Green background */
    color: white;
    /* White text */
    border: none;
    /* Remove border */
    border-radius: 5px;
    /* Rounded corners */
    cursor: pointer;
    /* Pointer cursor on hover */
    font-size: 16px;
    /* Increase font size */
}

.submit-button:hover {
    background-color: #3e8c6f; /*#45a049 #66deb2;*/
    /* Darker green on hover */
}

.submit-button:disabled {
    background-color: #ccc;
    /* Gray background */
    color: #666;
    /* Lighter text */
    cursor: not-allowed;
    /* Change cursor to indicate it's disabled */
}

.gen-sample{
    margin-bottom: 15px;
}

.readonly-container {
    margin-top: 20px;
    /* Add spacing above the read-only input */
}

.generated-url, .generated-curl {
    width: 100%;
    padding: 10px 50px 10px 10px;
    border: 2px inset #ccc;
    border-radius: 5px;
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
    font-family: "cursive, Comic Sans MS", sans-serif;
}

.generated-curl {
    /* Key properties for auto-grow with max limit */
    overflow-y: auto; /* Show scrollbar when content exceeds max-height */
    resize: none; /* No manual resize */
    line-height: 1.5em;
    min-height: calc(1.5em * 3 + 20px); /* Minimum 3 lines */
    max-height: calc(1.5em * 10 + 20px); /* Maximum 20 lines */
    height: auto; /* Let content determine height between min and max */
}

.generated-url:hover,
.generated-url:focus,
.generated-curl:hover,
.generated-curl:focus {
    border-color: #007bff;
    outline: none;
}

.generated-curl::-webkit-scrollbar {
    width: 8px;
}

.generated-curl::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.generated-curl::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.input-with-copy,
.input-with-curl-copy{
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem; /* 👈 Add vertical space between stacked blocks */
}

.copy-button,
.curl-copy-button {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 10;
}

.copy-button {
    top: 15px;
}

.curl-copy-button {
    top: 20px;
}

/* Pseudo-elements to draw two overlapping rectangles */
.copy-button::before,
.copy-button::after,
.curl-copy-button::before,
.curl-copy-button::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #555;
    border-radius: 2px;
    background: white;
    box-sizing: border-box;
}

.copy-button::before,
.curl-copy-button::before {
    z-index: 2;
}

.copy-button::after,
.curl-copy-button::after {
    top: -4px;
    left: 4px;
    opacity: 0.6;
    z-index: 1;
}

.copy-button.copied::before,
.curl-copy-button.copied::before {
    content: "✔";
    font-size: 16px;
    color: green;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
}

.input-wrapper {
    position: relative;
    flex: 1 1 auto; /* Makes it behave like the input used to */
    min-width: 0; /* Prevents overflow in flex containers */
    margin-right: 20px; /* Optional: space between this and next element */
}

.input-wrapper input {
    width: 100%;
    box-sizing: border-box;
}

.key-char-counter,
.values-char-counter{
    position: absolute;
    bottom: 2px;
    right: 6px;
    font-size: 10px;
    color: #888;
    pointer-events: none;
}

.access-limit-container{
    margin-bottom: 20px;
}

.access-limit-label {
  margin-right: 1rem; /* Adjust as needed: 1rem ≈ 16px */
  font-weight: 600; /* Slightly bold for emphasis */
  color: #333; /* Dark gray instead of pure black */
  font-size: 0.95rem; /* Slightly smaller for subtlety */
  letter-spacing: 0.3px; /* Improves readability */
  font-family: "Segoe UI", "Roboto", "Helvetica", sans-serif; /* Clean modern fonts */
}

.auth-fail-return-label {
  margin-right: 0.2rem; /* Adjust as needed: 1rem ≈ 16px */
  font-weight: 600; /* Slightly bold for emphasis */
  color: #333; /* Dark gray instead of pure black */
  font-size: 0.95rem; /* Slightly smaller for subtlety */
  letter-spacing: 0.3px; /* Improves readability */
  font-family: "Segoe UI", "Roboto", "Helvetica", sans-serif; /* Clean modern fonts */
}

.margin-to-right{
    margin-right: 1rem;
}

.readonly-field {
  background-color: #f0f0f0;
  color: #6c757d;
  cursor: not-allowed;
}