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

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    line-height: 1.6;
    color: #16191f;
    background-color: #f8f8f8;
}

#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #232f3e;
    color: white;
    padding: 1rem;
    text-align: center;
    border-bottom: 4px solid #ff9900;
    position: relative;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    opacity: 0.8;
}

#user-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-email-display {
    font-size: 0.9rem;
    color: #fff;
}

#logout-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

/* Form styles */
.form-container, .success-container, .dashboard-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Button styles */
button {
    background-color: #ff9900;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #e88b00;
}

button.secondary {
    background-color: #e7e7e7;
    color: #333;
    margin-left: 10px;
}

button.secondary:hover {
    background-color: #d7d7d7;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
}

.form-actions.centered {
    justify-content: center;
}

/* Page navigation */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* CAPTCHA container */
#captcha-container {
    margin: 20px 0;
    min-height: 100px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-message p {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Instructions */
.instructions {
    text-align: left;
    margin: 30px auto;
    max-width: 500px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #232f3e;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

/* Dashboard styles */
.dashboard-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.dashboard-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dashboard-section h3 {
    color: #232f3e;
    margin-bottom: 15px;
}

.info-box, .ns-records-box, .instructions-box {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 500;
    width: 150px;
}

.info-value {
    flex: 1;
}

.status {
    font-weight: 500;
}

.status-active {
    color: #1e8900;
}

.status-pending {
    color: #e99400;
}

.status-none {
    color: #888;
}

#ns-records-list {
    list-style-type: none;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
}

#ns-records-list li {
    padding: 5px 0;
    font-family: monospace;
    font-size: 14px;
}

#ns-records-list li.no-records {
    color: #888;
    font-style: italic;
}

.ns-records-form {
    margin-top: 20px;
}

.ns-records-form h4 {
    margin-bottom: 15px;
}

.instructions-box ol {
    padding-left: 20px;
}

.instructions-box li {
    margin-bottom: 15px;
}

.instructions-box ul {
    padding-left: 20px;
    margin-top: 5px;
}

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

.code {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

/* Mock CAPTCHA for development */
.mock-captcha {
    padding: 15px;
    background-color: #f0f0f0;
    border: 1px dashed #aaa;
    text-align: center;
    width: 100%;
    color: #666;
}
