/* Hide the md container from basic.html */
.markdown-body {
    display: none;
}

/* styles/test_function.css */

.spinner {
    border: 2px solid #f3f3f3; /* Light grey */
    border-top: 2px solid #007bff; /* Blue */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.console-link {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.console-link:hover {
    color: #0056b3;
}

section {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px; /* Max width for better readability */
    margin-left: 20px; /* Left align the section */
}

section p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
    width: 100%; /* Ensure it doesn't exceed section width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

section ul,
section ol {
    padding-left: 20px; /* Indent bullet points */
    margin-top: 5px;
    margin-bottom: 10px;
}

section li {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    box-sizing: border-box;
    width: 100%; /* Ensure it doesn't exceed section width */
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.result-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.result {
    flex: 1;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #888;
    font-style: italic;
    overflow: hidden; /* Hide overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    margin-right: 10px;
    max-width: 100%; /* Ensure it doesn't exceed container width */
}

.helper-text {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

button {
    width: 150px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

button:hover {
    background-color: #0056b3;
}
