:root {
    /* Default production color scheme (bluish-purple) */
    --primary-gradient-start: #667eea;
    --primary-gradient-end: #764ba2;
    --accent-color: #667eea;
    --button-bg: #667eea;
    --button-hover: #5a6fd8;
    --border-color: #e1e5e9;
    --text-primary: #333;
    --text-secondary: #666;
    --focus-shadow: rgba(102, 126, 234, 0.1);
}

/* Test mode color scheme (yellow-green) */
body.test-mode {
    --primary-gradient-start: #9acd32;
    --primary-gradient-end: #32cd32;
    --accent-color: #9acd32;
    --button-bg: #9acd32;
    --button-hover: #8bb82a;
    --border-color: #d4e6a0;
    --text-primary: #2d4a00;
    --text-secondary: #4a6b00;
    --focus-shadow: rgba(154, 205, 50, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.form-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.description {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.privacy-notice-wrapper {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.privacy-notice {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

.privacy-notice p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.terms-of-service-wrapper {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.terms-of-service {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

.terms-of-service p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.ethos-roadmap-wrapper {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.ethos-roadmap {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

.ethos-roadmap ul {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.ethos-roadmap li {
    margin-bottom: 8px;
}

.ethos-roadmap p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0 0 0;
    text-align: center;
}

.ownership-form {
    text-align: left;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafbfc;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
    background: white;
}

input[type="text"]::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.hidden {
    display: none;
}

/* Content Editor Section Styles */
.content-editor-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.content-editor-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.editor-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.editor-wrapper {
    text-align: left;
}

.content-editor {
    width: 100%;
    height: calc(2 * 1.6em + 30px);
    min-height: calc(2 * 1.6em + 30px);
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #fafbfc;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    white-space: pre-wrap;
}

.content-editor:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
    background: white;
}

.editor-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.cancel-btn:active {
    transform: translateY(0);
}

/* Relay Configuration Section Styles */
.relay-config-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.relay-config-section h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.relay-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.relay-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.relay-input-group {
    display: flex;
    flex-direction: column;
}

.relay-input-group label {
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.relay-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.relay-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.relay-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
}

.relay-input-wrapper select {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
}

.relay-input-wrapper select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
}

.relay-input-wrapper select:hover {
    border-color: var(--accent-color);
}

/* Instructions Section Styles */
.instructions-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.instructions-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.instructions-text {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #ffffff;
    color: #333;
    resize: none;
    white-space: pre-wrap;
    overflow-y: auto;
}

.instructions-text:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
}

/* Upload Section Styles */
.upload-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

.upload-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.upload-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.upload-wrapper {
    text-align: center;
}

.upload-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive design */
@media (max-width: 600px) {
    .form-wrapper {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .relay-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .relay-input-wrapper select {
        min-width: auto;
        width: 100%;
    }
}
