/* Styles for Plugin */
.getterms-table,
.code-table {
    width: 100%;
    border-collapse: collapse;
}

.getterms-table th,
.getterms-table td,
.code-table th,
.code-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.getterms-table th,
.code-table th {
    background-color: #f2f2f2;
}

#getterms-error-message {
    color: red;
}

#getterms-token-input {
    display: flex;
    align-items: center;
}

#getterms-token-input .form-label input {
    width: 100px;
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.button-container {
    margin-left: 0;
}

.button-container .button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.copy-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
}

.code-block {
    align-items: center;
    background-color: #f9f9f9 !important;
    border: 1px solid #dedede;
    border-radius: 5px;
    display: flex;
    gap: 3.5rem;
    grid-template-columns: 1fr auto;
    line-height: 1.4rem;
    padding: 20px;
    position: relative;
}

.code-block code {
    border: solid 1px grey;
    margin-right: 0;
    border-radius: 3px;
    background-color: #f9f9f9 !important;
    padding: 1rem;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.code-block__copy {
    color: #595d6b;
}

.code-block__copy:hover {
    cursor: pointer;
}

.code-block__copy svg {
    margin-right: 6px;
}

.btn--border .inner {
    align-items: center;
    display: flex;
    padding: .3846153846em 1.1538461538em .4615384615em;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 30px;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #065af9;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.show-code-btn {
    align-self: flex-start;
    padding: 8px 12px;
    cursor: pointer;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 12px;
}

.show-code-btn.active {
    background: #065af9;
}

.show-code-btn.inactive {
    background: #ccc;
}

.code-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.code-snippet {
    width: calc(100% - 27px);
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.lang-column {
    width: 150px;
}

.copy-column {
    width: 120px;
}

.embed-column {
    width: 120px;
}

.code-column {
    width: auto;
}

.toggle-group {
    display:flex;
    align-items: center;
}
.toggle-group > .switch {
    margin-right:10px;
}
