.sidebar {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 6px;
}

.request-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    width: 100%; /* use parent width instead of 100vw */
    box-sizing: border-box;
    padding: 0; /* remove extra padding */
    margin: 0; /* remove extra margin */
}


/*HEADER TAB*/

/* Container */
#headers-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

#headers-tab {
    font-family: Arial, sans-serif;
}

    /* Heading */
    #headers-tab h4 {
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    /* Table base */
    #headers-tab table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
        border: 1px solid #ddd;
        /* border-radius: 6px;*/
        overflow: hidden;
    }

    /* Table head */
    #headers-tab thead tr {
        background: #f9fafb;
        border-bottom: 1px solid #ddd;
    }

    #headers-tab th {
        padding: 10px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        color: #555;
    }

    /* Table body */
    #headers-tab td {
        padding: 0; /* remove extra space */
        font-size: 14px;
        border-bottom: 1px solid #eee;
        color: #333;
        vertical-align: middle;
    }

        /* Checkbox cell */
        #headers-tab td:first-child,
        #headers-tab th:first-child {
            text-align: center;
            width: 50px;
        }

        #headers-tab td:last-child,
        #headers-tab th:last-child {
            /*min-width: 200px;*/ /* ensures description has space */
            padding-left: 8px; /* some breathing room */
        }

        /* Make Value column inputs smaller */
        #headers-tab td:nth-child(3) input,
        #headers-tab td:nth-child(3) select {
            width: 95%; /* instead of 100% */
            max-width: 95%; /* optional: cap the width */
            box-sizing: border-box;
        }

        /* Allow Description column to auto-size */
        #headers-tab td:nth-child(4) {
            width: auto;
            padding-left: 10px; /* spacing from Value column */
        }

    /* Inputs inside table */
    #headers-tab input[type="text"],
    #headers-tab select {
        width: 90%; /* leave some space for 4th column */
        margin: 2px 4px;
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 13px;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }

        #headers-tab input[type="text"]:focus {
            border-color: #4a90e2;
            box-shadow: 0 0 3px rgba(74, 144, 226, 0.3);
            outline: none;
        }

    /* Button */
    #headers-tab button {
        padding: 5px 10px;
        font-size: 12px;
        border: none;
        margin-top: 12px;
        border-radius: 4px;
        background: #4a90e2;
        color: #fff;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        #headers-tab button:hover {
            background: #357ab8;
        }

/*AUTHORISATION TAB*/
#authorization-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

/*PARAMETER TAB*/
/* Container */
#parameters-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

#parameters-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

    /* Table Head */
    #parameters-table thead tr {
        background: #f9fafb;
        border-bottom: 1px solid #ddd;
    }

    #parameters-table th {
        padding: 10px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        color: #555;
    }

    /* Table Body */
    #parameters-table td {
        padding: 6px 8px;
        border-bottom: 1px solid #f1f1f1;
        vertical-align: middle;
        color: #333;
    }

    /* Inputs */
    #parameters-table input[type="text"] {
        width: 100%;
        padding: 6px 8px;
        height: 30px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 13px;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }

        #parameters-table input[type="text"]:focus {
            border-color: #4a90e2;
            box-shadow: 0 0 3px rgba(74, 144, 226, 0.3);
            outline: none;
        }

    /* Action column */
    #parameters-table td:last-child {
        text-align: center;
        width: 90px;
    }

    /* Buttons */
    #parameters-table button {
        padding: 5px 10px;
        font-size: 12px;
        border: none;
        border-radius: 4px;
        background: #e74c3c;
        color: #fff;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        #parameters-table button:hover {
            background: #c0392b;
        }

/*AUTHORISATION TAB*/
#authorization-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}
/*body-tab*/
#body-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}
/*response-tab*/
#response-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

/* Container for Insights Tabs */
#insight-tab-container {
    font-family: Arial, sans-serif;
    margin-top: 0px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

.url {
    display: flex;
    flex-wrap: wrap; /* stack on very small screens */
    gap: 8px; /* spacing between input, dropdown, and buttons */
    width: 80%; /* full width of parent/main */
    box-sizing: border-box;
    align-items: center;
}

    .url input#urlInput {
        flex: 1 1 0; /* input takes all remaining space */
        min-width: 0; /* ensures it shrinks properly */
        padding: 10px 14px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        outline: none;
        background-color: #fff;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

        .url input#urlInput:focus {
            border-color: #4a90e2;
            box-shadow: 0 2px 6px rgba(74,144,226,0.25);
        }

    .url button,
    .url .custom-dropdown {
        flex: 0 0 auto; /* keep their natural size */
    }

    .url button {
        padding: 8px 14px;
        font-size: 14px;
        border: none;
        border-radius: 6px;
        background: #4a90e2;
        color: #fff;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .url button:hover {
            background: #357ab8;
        }



.env-endpoint-row {
    display: flex;
    flex-wrap: wrap; /* stack on small screens */
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.env-field {
    flex: 1 1 200px; /* grow/shrink, min width 200px */
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
}


/* Input feedback styles */
#urlInput.valid {
    border: 2px solid green;
}

#urlInput.invalid {
    border: 2px solid red;
}

.showdetail-p {
    margin-top: 0 !important;
    margin-bottom: 0rem !important;
}