/* Styles for the admin SOAP console */

.soap-console-page {
    max-width: 900px;
    margin: 120px auto 80px auto;
    padding: 0 1.25rem;
}

.soap-console-header {
    margin-bottom: 1.5rem;
}

.soap-console-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7fb4ff;
    font-size: 0.8rem;
    margin: 0;
}

.soap-console-title {
    margin: 0.2rem 0;
    font-size: 2rem;
}

.soap-console-subtitle {
    margin: 0.4rem 0 0;
    color: #b9c6df;
}

.soap-console-card {
    background: rgba(8, 19, 32, 0.85);
    border: 1px solid rgba(124, 174, 255, 0.18);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.25rem;
}

.soap-console-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.soap-console-label {
    margin: 0;
    font-weight: 600;
    color: #e4f2ff;
}

.soap-console-input-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.soap-console-input {
    flex: 1 1 320px;
    background: #0d1a2c;
    border: 1px solid #24334d;
    color: #e4f2ff;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    height: 38px;
    box-sizing: border-box;
    line-height: 1.3;
}
.soap-console-input:focus {
    border-color: #7fb4ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(127, 180, 255, 0.25);
}

.soap-console-submit {
    background: linear-gradient(135deg, #4c6bff, #72b2ff);
    border: none;
    color: #0a1220;
    font-weight: 700;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 18px rgba(79, 129, 255, 0.35);
}
.soap-console-submit:hover {
    filter: brightness(1.05);
}

.soap-console-hint {
    margin: 0;
    color: #b9c6df;
}

.soap-console-quick {
    margin-top: 1rem;
}

.soap-console-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.soap-console-chip {
    background: rgba(114, 178, 255, 0.12);
    color: #e4f2ff;
    border: 1px solid rgba(114, 178, 255, 0.4);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-size: 0.95rem;
}
.soap-console-chip:hover {
    background: rgba(114, 178, 255, 0.2);
}

.soap-console-chip--small {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

.soap-console-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0 0 0.75rem;
    border: 1px solid;
}
.soap-console-alert--error {
    background: rgba(255, 99, 132, 0.12);
    border-color: rgba(255, 99, 132, 0.45);
    color: #ffd2da;
}
.soap-console-alert--success {
    background: rgba(115, 255, 184, 0.12);
    border-color: rgba(115, 255, 184, 0.45);
    color: #d8ffe9;
}

.soap-console-output {
    background: rgba(6, 13, 24, 0.9);
    border: 1px solid rgba(124, 174, 255, 0.18);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.soap-console-output-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.soap-console-empty {
    margin: 0.25rem 0;
    color: #9bb0d0;
}

.soap-console-pre {
    margin: 0;
    padding: 0.75rem;
    background: #0d1a2c;
    border: 1px solid #24334d;
    border-radius: 8px;
    color: #e4f2ff;
    white-space: pre-wrap;
    word-break: break-word;
}

.soap-console-log {
    margin-top: 1.25rem;
}

.soap-console-log-table-wrap {
    overflow-x: auto;
}

.soap-console-log-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    font-size: 0.82rem;
}

.soap-console-log-table th,
.soap-console-log-table td {
    border-bottom: 1px solid #24334d;
    padding: 0.4rem 0.45rem;
    text-align: left;
}

.soap-console-log-table th {
    font-weight: 700;
    color: #cfe3ff;
    font-size: 0.9rem;
}

.soap-log-error {
    color: #ffb3c5;
}

.admin-subnav {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}
.admin-subnav a {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(124, 174, 255, 0.35);
    background: rgba(15, 30, 52, 0.8);
    color: #e4f2ff;
}
.admin-subnav a:hover {
    background: rgba(124, 174, 255, 0.1);
}
.admin-subnav a.is-active {
    background: linear-gradient(135deg, #4c6bff, #72b2ff);
    color: #0a1220;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 129, 255, 0.35);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.settings-card-title {
    margin: 0.15rem 0 0;
    font-size: 1.3rem;
}

.settings-note {
    margin: 0;
    color: #9bb0d0;
    font-size: 0.95rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.settings-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.settings-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #cfe3ff;
    font-weight: 600;
}

.settings-input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 36px;
    padding: 0 0.75rem;
    line-height: 1.2;
    border-radius: 6px;
    box-sizing: border-box;
    flex: none;
}

.settings-worlds {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.settings-world {
    border: 1px solid rgba(124, 174, 255, 0.2);
    border-radius: 10px;
    padding: 0.85rem;
    background: rgba(10, 20, 35, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.settings-world-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.settings-world-label {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #7fb4ff;
}

.settings-remove {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4f2ff;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

.settings-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.65rem;
}

.settings-submit-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: flex-start;
}

.settings-error-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.25rem;
}

@media (max-width: 600px) {
    .soap-console-input-row {
        flex-direction: column;
    }

    .soap-console-submit {
        width: 100%;
    }
}
