/* RegisterConverter Web Interface Styles - Silanna Color Scheme */

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

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

header {
    background-color: #171d2d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
    position: relative;
}

.header-logos {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1rem;
}

.header-logo {
    width: auto;
    display: block;
}

.header-logo-silanna {
    height: 60%;
}

.header-logo-socketswap {
    height: 70%;
}

header h1 {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.8rem;
    margin: 0;
    color: #cead5c;
    pointer-events: none;
}

.container {
    display: flex;
    max-width: 1800px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

.column {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.column h2 {
    color: #122c43;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ac2522;
    font-size: 1.4rem;
}

/* Left Column (Source) */
.left-column {
    min-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

#oem-part-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

#oem-part-select:focus {
    outline: none;
    border-color: #2ea3f2;
    box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.2);
}

.part-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    min-height: 24px;
}

#register-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
}

#register-input:focus {
    outline: none;
    border-color: #2ea3f2;
    box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.2);
}

/* Right Column (Destination) */
.right-column {
    min-width: 600px;
}

.replacement-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.replacement-part-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.replacement-part-display label {
    font-weight: 600;
    color: #555;
}

.replacement-part {
    font-size: 1.3rem;
    font-weight: bold;
    color: #122c43;
    padding: 0.25rem 0.75rem;
    background-color: #cead5c;
    border-radius: 4px;
    border: 2px solid #cead5c;
}

/* Initialization Options */
.init-options {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.init-options h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #ac2522;
}

.checkbox-label span {
    user-select: none;
}

.checkbox-label:hover {
    color: #122c43;
}

.output-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.output-section {
    display: flex;
    flex-direction: column;
}

.output-section label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

#transcript-output,
#writes-output {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    resize: vertical;
}

/* Transcript display as div */
#transcript-output {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #ac2522;
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background-color: #8e2326;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #666666;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #555555;
}

.btn-download {
    background-color: #2ea3f2;
    color: white;
    flex: 1;
}

.btn-download:hover:not(:disabled) {
    background-color: #1a8cd8;
}

/* Status Message */
.status-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.status-message.show {
    opacity: 1;
}

.status-message.success {
    background-color: #27ae60;
    color: white;
}

.status-message.error {
    background-color: #ac2522;
    color: white;
}

.status-message.info {
    background-color: #2ea3f2;
    color: white;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #171d2d;
    color: #cead5c;
    font-size: 0.9rem;
}

/* Transcript Highlighting */
.transcript-error {
    color: #ac2522;
    font-weight: bold;
    background-color: rgba(172, 37, 34, 0.1);
    padding: 0 0.25rem;
}

.transcript-warning {
    color: #ff8c00;
    font-weight: bold;
    background-color: rgba(255, 140, 0, 0.1);
    padding: 0 0.25rem;
}

.transcript-true {
    color: #28a745;
    font-weight: bold;
}

.transcript-false {
    color: #ac2522;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }

    .column {
        min-width: auto;
    }

    .replacement-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .download-buttons {
        flex-direction: column;
    }
}
