/* Challenge SDK Styles */
.challenge-registration,
.challenge-submission {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Tab-integrated challenge styles without container styling */
.challenge-registration-content,
.challenge-submission-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.header-content {
    text-align: center;
    flex: 1;
}

.challenge-header .header-content h4 {
    color: #1e3c72;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.challenge-header .header-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.team-info {
    color: #666;
    font-size: 14px;
    margin: 8px 0 0 0;
    text-align: center;
}

.team-info-display {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.team-details {
    color: #495057;
    font-size: 16px;
    font-weight: 500;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.field-content {
    flex: 1;
}

.team-info {
    color: #666;
    font-size: 14px;
    margin: 8px 0 0 0;
    flex: 1;
}

.field-x-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    color: #6c757d;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.field-x-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.field-x-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.team-info {
    background: #f0f7ff;
    color: #1e3c72;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    font-weight: 500;
}

.challenge-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    width: 100%;
}

.challenge-btn.primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.challenge-btn.primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.challenge-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.challenge-btn.secondary:hover:not(:disabled) {
    background: #e9ecef;
}

.challenge-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.model-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.model-status.ready {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.model-status .status-icon {
    font-size: 24px;
    min-width: 24px;
}

.model-status .status-text {
    flex: 1;
}

.model-status .status-text div {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.model-status .status-text small {
    color: #666;
    font-size: 12px;
}

.registration-status,
.submission-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.registration-status.success,
.submission-status.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.registration-status.error,
.submission-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.registration-status.info,
.submission-status.info {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.registration-status.loading,
.submission-status.loading {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .challenge-registration,
    .challenge-submission {
        margin: 16px;
        padding: 16px;
    }
}