*, *::before, *::after {
    box-sizing: border-box;
}

.settings-plugin {
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
    padding: 15px;
}

.settings-header {
    margin-bottom: 1em;
    border-bottom: 2px solid #007acc;
}

.settings-header h3 {
    margin: 0 0 8px 0;
    color: #007acc;
}

.container-flex {
    display: flex;
    gap: 20px;
    width: 100%;
}

.sidebar {
    width: 220px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 1em;
}

.sidebar a.button-link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    background-color: #1794DD;
    color: #fff;
}

.sidebar a.button-link:hover,
.sidebar a.button-link.active {
    background-color: #FDEAB3;
    color: #000;
}

.content-area {
    flex: 1 1 auto;
    min-width: 0;
}

.settings-content-box {
    width: 100%;
    min-width: 0;
    border: 1px solid #d6dce2;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.settings-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #f2f6fa;
    border-bottom: 1px solid #d6dce2;
    padding: 10px 14px;
}

.settings-content-header h4 {
    margin: 0;
    color: #007acc;
    font-size: 1.1em;
}

.settings-content-header span {
    color: #666;
    font-size: 0.9em;
}

.settings-content-body {
    padding: 16px;
}

.settings-content-body h2 {
    margin-top: 0;
    color: #2E7FC0;
}

.settings-content-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #f4f4f4;
    border-top: 1px solid #d6dce2;
    color: #666;
    font-size: 0.9em;
    padding: 9px 14px;
}

.settings-form,
.settings-panel {
    max-width: 100%;
    background: #f9f9f9;
    border: 1px solid #d6dce2;
    border-radius: 6px;
    padding: 18px;
}

.settings-form label {
    display: block;
    margin: 12px 0 5px;
    font-weight: bold;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form select,
.settings-form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #b9c2cc;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 1em;
}

.settings-form textarea {
    resize: vertical;
}

.settings-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.settings-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: normal;
}

.settings-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.settings-save {
    margin-top: 16px;
    border: 0;
    border-radius: 4px;
    background: #1794DD;
    color: #fff;
    padding: 9px 16px;
    font-weight: bold;
    cursor: pointer;
}

.settings-save:hover {
    background: #FDEAB3;
    color: #000;
}

.settings-message {
    max-width: 980px;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: bold;
}

.settings-message.success {
    background: #e9f7ef;
    border: 1px solid #9ed8b2;
    color: #1d5b31;
}

.settings-message.error,
.settings-warning {
    background: #f8d7da;
    border: 1px solid #e0a2a8;
    color: #721c24;
    padding: 9px 10px;
    border-radius: 4px;
}

.settings-helptext {
    color: #444;
    line-height: 1.5;
}

.settings-legal-box {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #b9d8ec;
    border-radius: 6px;
    background: #f3f9fd;
}

.settings-legal-box h3 {
    margin: 0 0 8px;
    color: #1f3f5f;
}

.settings-action-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #1794DD;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.settings-action-link:hover {
    background: #FDEAB3;
    color: #000;
}

.settings-info-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e3e7eb;
}

.settings-info-row:last-child {
    border-bottom: 0;
}

.settings-info-row strong {
    color: #1f3f5f;
}

.settings-info-row span {
    word-break: break-word;
}

.settings-footer {
    margin-top: 2em;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    background-color: #EAEAEA;
    padding: 10px;
}

@media (max-width: 720px) {
    .container-flex {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .settings-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .settings-two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
