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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #667eea;
    margin-right: 10px;
    border-radius: 2px;
}

select, textarea, input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

select:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input {
    margin-right: 8px;
    cursor: pointer;
}

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

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input {
    margin-right: 8px;
    cursor: pointer;
}

.status {
    padding: 12px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    color: #1976d2;
    display: none;
}

.status.show {
    display: block;
}

.status.error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.status.success {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* Inline Result Styles */
.inline-result {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #667eea;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 20px;
}

.result-metadata {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.inline-result .result-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Courier New", monospace;
    margin: 15px 0;
    max-height: 500px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-actions button {
    flex: 1;
    min-width: 120px;
}

/* Fullscreen Result Overlay */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.result-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.result-modal-header h2 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 22px;
}

.result-metadata {
    color: #666;
    font-size: 14px;
}

.close-button {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.close-button:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.result-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.result-modal-content .result-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.result-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.result-modal-footer button {
    flex: 1;
}

/* Responsive overlay */
@media (max-width: 768px) {
    .result-overlay {
        padding: 10px;
    }
    
    .result-modal {
        max-height: 95vh;
    }
    
    .result-modal-header {
        padding: 20px;
    }
    
    .result-modal-content {
        padding: 20px;
    }
    
    .result-modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .result-modal-footer button {
        width: 100%;
    }
}
/* Authentication Input Sections */
.auth-input-section {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.auth-input-section input {
    margin-bottom: 8px;
}

.input-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 4px;
}

/* Animation for section transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-input-section {
    animation: fadeIn 0.3s ease;
}

/* Radio label enhancement for auth method */
.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Optional: Add visual feedback for focused inputs */
.auth-input-section input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}