/**
 * Copyright 2025 Luna S.R.L.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.activation-container,
.settings-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 1rem;
    gap: 1rem;
    margin-right: 1.5rem;
}

.activation-container ~ .settings-container,
.settings-container ~ .activation-container {
    margin-top: 3rem;
}

.activation-title,
.settings-title {
    flex:0.2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.activation-title p,
.settings-title p {
    font-size: 1rem;
    font-weight: 600;
}

.activation-title span,
.settings-title span {
    /* on a row */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.activation-form,
.settings-form {
    display: flex;
    flex-direction: column;
    flex: 0.6;
    gap: 1rem;
    max-width: 50%;
}

.activation-confirm,
.settings-confirm {
    display: flex;
    flex-direction: column;
    flex: 0.1;
}

.paste {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

}

.activation-input label,
.settings-input label {
    font-weight: 600;
}

.activation-input,
.settings-input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.activation-input-hint,
.settings-input-hint {
    text-align: right;
    text-align: end;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-style: italic;
}

.activation-input input:not([type="checkbox"]),
.settings-input input:not([type="checkbox"]) {
    width: 80%;
}

.activation-input select,
.settings-input select {
    min-width: 50%;
    max-width: 80%;
}

.buttons-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;

}

.paste-from-clipboard-button {
    background-color: orange;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    max-width: 12rem;
    min-width: 1rem;
}

.activation-confirm button,
.settings-confirm button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    max-width: 12rem;
    min-width: 1rem;
}

#prntck-activation-indicator-icon {
    border-radius: 25px;
    width: 0.5rem;
    height: 0.5rem;
}
#prntck-activation-indicator-icon.active {
    background-color: green;
}

#prntck-activation-indicator-icon.inactive {
    background-color: red;
}

.prntck-footer .prntck-footer-credits-image img {
    max-height: 16px;
}

fieldset.settings-input-group {
    border: solid 1px #afafaf;
    border-radius: 4px;
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .activation-container,
    .settings-container {
        padding: 0.5rem;
    }

    .activation-title,
    .settings-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .activation-form,
    .settings-form {
        max-width: 100%;
    }

    .activation-confirm,
    .settings-confirm {
        width: 100%;
        max-width: 100%;
    }

    .paste {
        width: 100%;
    }

    .paste button {
        width: 100%;
        max-width: 100%;
    }

    .activation-confirm button,
    .settings-confirm button {
        max-width: 100%;
    }

    .activation-input input,
    .settings-input input {
        width: 70%;
    }

    .buttons-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}
