* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.status-indicator {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
}

.status-online {
    background-color: #ff4444;
    color: white;
}

.status-offline {
    background-color: #44ff44;
    color: black;
}

.status-test {
    background-color: #ffaa00;
    color: black;
}

.disclaimer {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #721c24;
    text-align: center;
}

.disclaimer h3 {
    margin-bottom: 10px;
    color: #dc3545;
    font-size: 18px;
}

.disclaimer p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #856404;
}

.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #721c24;
}

.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #155724;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input:disabled, textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.security-note {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.button:hover:not(:disabled) {
    background-color: #0056b3;
}

.button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.button-success {
    background-color: #28a745;
}

.button-success:hover:not(:disabled) {
    background-color: #218838;
}

.button-danger {
    background-color: #dc3545;
}

.button-danger:hover:not(:disabled) {
    background-color: #c82333;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .slider {
    background-color: #2196F3;
}

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

.transaction-output {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.transaction-hex {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.qr-code {
    text-align: center;
    margin-top: 20px;
}

.copy-button {
    position: relative;
    margin-left: 10px;
}

.hidden {
    display: none;
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.qr-placeholder {
    width: 256px;
    height: 256px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: #f9f9f9;
    color: #666;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
}

.main-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.form-column {
    flex: 1;
    min-width: 400px;
}

.instructions-column {
    flex: 1;
    min-width: 500px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.instructions-column h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.instructions-column h3 {
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 10px;
}

.instruction-section {
    margin-bottom: 25px;
}

.instruction-section ol,
.instruction-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.instruction-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.instruction-section a {
    color: #007bff;
    text-decoration: none;
}

.instruction-section a:hover {
    text-decoration: underline;
}

.critical-warning {
    background-color: #f8d7da;
    border: 3px solid #dc3545;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #721c24;
}

.critical-warning strong {
    color: #dc3545;
    font-size: 16px;
}

.critical-warning p {
    margin: 10px 0;
    font-weight: bold;
    font-size: 15px;
}

.critical-warning ul {
    margin-left: 20px;
    margin-top: 10px;
}

.critical-warning li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    color: #856404;
}

.warning-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.warning-box li {
    margin-bottom: 5px;
}

.disclaimer-footer {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    color: #721c24;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

.scan-button {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .form-column,
    .instructions-column {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .flex-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        gap: 20px;
    }

    .instructions-column {
        padding: 15px;
    }
}
