/* Packet Decoder — matches GeneralConfig spacing conventions */

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    margin: 10px;
    margin-left: 192px;
    color: #000;
}

header {
    text-align: left;
    margin-bottom: 12px;
}

.logo {
    width: 170px;
    height: auto;
}

.title {
    font-size: 18px;
    margin: 4px 0;
}

.subtitle {
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 16px 0;
    color: #333;
    max-width: 900px;
}

.subtitle code {
    font-size: inherit;
    font-family: Consolas, "Courier New", monospace;
}

.form-block {
    margin-bottom: 14px;
    max-width: 900px;
}

.form-block label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.decoder-mode-block {
    margin-bottom: 12px;
}

.decoder-mode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mode-button {
    padding: 8px 14px;
    font-size: 14px;
}

.mode-button-active {
    font-weight: bold;
    box-shadow: inset 0 0 0 2px #333;
}

.is-hidden {
    display: none !important;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.file-name {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
    word-break: break-all;
}

.field-fport {
    flex: 0 0 auto;
}

.field-fport input {
    width: 72px;
}

textarea.packet-input {
    width: 100%;
    max-width: 900px;
    min-height: 72px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    box-sizing: border-box;
}

.actions {
    margin-top: 12px;
    margin-bottom: 16px;
}

button {
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
}

button.decode-button {
    font-weight: bold;
}

.output-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

pre.output {
    margin: 0;
    padding: 12px;
    max-width: 900px;
    max-height: 480px;
    overflow: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

pre.output.error {
    background: #3a2020;
    color: #ffb4b4;
}

.nav-header {
    margin-top: 28px;
    margin-bottom: 10px;
}

.nav-header a {
    font-size: 14px;
}
